diff options
-rw-r--r-- | mcs/errors/cs0466-2.cs | 14 | ||||
-rw-r--r-- | mcs/errors/cs1615-2.cs | 15 | ||||
-rw-r--r-- | mcs/errors/cs3005-25.cs | 12 | ||||
-rw-r--r-- | mcs/errors/known-issues-gmcs | 2 |
4 files changed, 41 insertions, 2 deletions
diff --git a/mcs/errors/cs0466-2.cs b/mcs/errors/cs0466-2.cs new file mode 100644 index 00000000000..3326ec6f147 --- /dev/null +++ b/mcs/errors/cs0466-2.cs @@ -0,0 +1,14 @@ +// cs0466: `Base.I.this[params int[]].set': the explicit interface implementation cannot introduce the params modifier
+// Line: 10
+
+interface I
+{
+ int this [int[] p] { set; }
+}
+class Base : I
+{
+ int I.this [params int[] p] {
+ set {
+ }
+ }
+}
diff --git a/mcs/errors/cs1615-2.cs b/mcs/errors/cs1615-2.cs new file mode 100644 index 00000000000..fccefe8917a --- /dev/null +++ b/mcs/errors/cs1615-2.cs @@ -0,0 +1,15 @@ +// CS1615: Argument `2' should not be passed with the `out' keyword +// Line: 13 + +public class X +{ + public static void Test (params int[] a) + { + } + + public static void Main() + { + int i; + Test (1, out i); + } +} diff --git a/mcs/errors/cs3005-25.cs b/mcs/errors/cs3005-25.cs new file mode 100644 index 00000000000..b9410e32b73 --- /dev/null +++ b/mcs/errors/cs3005-25.cs @@ -0,0 +1,12 @@ +// CS3005: Identifier `Foo.main()' differing only in case is not CLS-compliant +// Line: 9 +// Compiler options: -warnaserror + +using System; +[assembly: CLSCompliant(false)] + +[CLSCompliant(true)] +public class Foo { + public static void Main () {} + public static void main () {} +}
\ No newline at end of file diff --git a/mcs/errors/known-issues-gmcs b/mcs/errors/known-issues-gmcs index 14afbc1d64a..665c0298f27 100644 --- a/mcs/errors/known-issues-gmcs +++ b/mcs/errors/known-issues-gmcs @@ -13,8 +13,6 @@ cs0019-20.cs cs0162-7.cs NO ERROR -cs0267.cs -cs0267-2.cs cs0525.cs cs0526.cs cs0531.cs |