Author: marek
Date: 2005-07-14 10:47:50 -0400 (Thu, 14 Jul 2005)
New Revision: 47306
Added:
trunk/mcs/errors/cs0118-3.cs
trunk/mcs/errors/cs0118-4.cs
trunk/mcs/errors/cs0118-5.cs
Removed:
trunk/mcs/errors/cs0246-9.cs
Modified:
trunk/mcs/errors/cs0118-2.cs
trunk/mcs/errors/cs0118.cs
trunk/mcs/errors/cs0246-8.cs
trunk/mcs/errors/cs0579-3.cs
trunk/mcs/errors/cs0579-4.cs
trunk/mcs/errors/cs0579-5.cs
trunk/mcs/errors/cs0579-6.cs
trunk/mcs/errors/cs0579-7.cs
trunk/mcs/errors/cs0579-8.cs
trunk/mcs/errors/cs0579.cs
trunk/mcs/errors/known-issues-gmcs
trunk/mcs/errors/known-issues-mcs
Log:
new tests + update
Modified: trunk/mcs/errors/cs0118-2.cs
===================================================================
--- trunk/mcs/errors/cs0118-2.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0118-2.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0118-2.cs: `A.B' denotes a `namespace', where a type was expected
+// cs0118-2.cs: `A.B' is a `namespace' but a `type' was expected
// Line: 9
// Compiler options: -r:CS0118-2-lib.dll
Added: trunk/mcs/errors/cs0118-3.cs
===================================================================
--- trunk/mcs/errors/cs0118-3.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0118-3.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -0,0 +1,10 @@
+// cs0118-3.cs: `Region.Value' is a `field' but a `type' was expected
+// Line: 8
+
+public sealed class Region
+{
+ int Value;
+
+ [Value(2)]
+ public Region() {}
+}
Added: trunk/mcs/errors/cs0118-4.cs
===================================================================
--- trunk/mcs/errors/cs0118-4.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0118-4.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -0,0 +1,14 @@
+// cs0118-4.cs: `x.a.B' is a `property' but a `type' was expected
+// Line: 9
+
+using System;
+
+namespace x
+{
+ class a
+ {
+ bool B { set {} }
+
+ void Test (B b) {}
+ }
+}
\ No newline at end of file
Copied: trunk/mcs/errors/cs0118-5.cs (from rev 47297,
trunk/mcs/errors/cs0246-9.cs)
===================================================================
--- trunk/mcs/errors/cs0246-9.cs 2005-07-14 10:24:33 UTC (rev 47297)
+++ trunk/mcs/errors/cs0118-5.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -0,0 +1,8 @@
+// cs0118-5.cs: `bar.foo' is a `field' but a `type' was expected
+// Line: 6
+// This is from bug #70758
+
+struct bar {
+ foo foo;
+}
+
Modified: trunk/mcs/errors/cs0118.cs
===================================================================
--- trunk/mcs/errors/cs0118.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0118.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0118.cs: X.s denotes a 'field' where a class was expected
+// cs0118.cs: `X.s' is a `field' but a `type' was expected
// Line: 6
class X {
string s;
Modified: trunk/mcs/errors/cs0246-8.cs
===================================================================
--- trunk/mcs/errors/cs0246-8.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0246-8.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0246-8.cs: The type or namespace name `Reflection.ConstructorInfo' could
not be found. Are you missing a using directive or an assembly reference?
+// cs0246-8.cs: The type or namespace name `Reflection' could not be found.
Are you missing a using directive or an assembly reference?
// Line: 7
using System;
Deleted: trunk/mcs/errors/cs0246-9.cs
===================================================================
--- trunk/mcs/errors/cs0246-9.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0246-9.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,6 +0,0 @@
-// cs0246-9.cs: The type or namespace name `foo' could not be found. Are you
missing a using directive or an assembly reference?
-// This is from bug #70758
-struct bar {
- foo foo;
-}
-
Modified: trunk/mcs/errors/cs0579-3.cs
===================================================================
--- trunk/mcs/errors/cs0579-3.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-3.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'Obsolete' attribute
+// cs0579.cs : Duplicate `Obsolete' attribute
// Line : 8
using System;
Modified: trunk/mcs/errors/cs0579-4.cs
===================================================================
--- trunk/mcs/errors/cs0579-4.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-4.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'AssemblyKeyName' attribute
+// cs0579.cs : Duplicate `AssemblyKeyName' attribute
// Line : 7
// Compiler options: CS0579-4-1.cs
Modified: trunk/mcs/errors/cs0579-5.cs
===================================================================
--- trunk/mcs/errors/cs0579-5.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-5.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'Return' attribute
+// cs0579.cs : Duplicate `Return' attribute
// Line : 17
using System;
Modified: trunk/mcs/errors/cs0579-6.cs
===================================================================
--- trunk/mcs/errors/cs0579-6.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-6.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'CLSCompliant' attribute
+// cs0579.cs : Duplicate `CLSCompliant' attribute
// Line : 10
using System;
Modified: trunk/mcs/errors/cs0579-7.cs
===================================================================
--- trunk/mcs/errors/cs0579-7.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-7.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'CLSCompliant' attribute
+// cs0579.cs : Duplicate `CLSCompliant' attribute
// Line : 10
using System;
Modified: trunk/mcs/errors/cs0579-8.cs
===================================================================
--- trunk/mcs/errors/cs0579-8.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579-8.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'Obsolete' attribute
+// cs0579.cs : Duplicate `Obsolete' attribute
// Line : 17
using System;
Modified: trunk/mcs/errors/cs0579.cs
===================================================================
--- trunk/mcs/errors/cs0579.cs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/cs0579.cs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -1,4 +1,4 @@
-// cs0579.cs : Duplicate 'AssemblyKeyName' attribute
+// cs0579.cs : Duplicate `AssemblyKeyName' attribute
// Line :
using System.Reflection;
Modified: trunk/mcs/errors/known-issues-gmcs
===================================================================
--- trunk/mcs/errors/known-issues-gmcs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/known-issues-gmcs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -12,6 +12,9 @@
# as NO ERROR and CS5001 is automatically ignored.
cs0118.cs
+cs0118-3.cs
+cs0118-4.cs
+cs0118-5.cs
cs0121-3.cs NO ERROR
cs0201.cs
cs0202.cs # new in GMCS
Modified: trunk/mcs/errors/known-issues-mcs
===================================================================
--- trunk/mcs/errors/known-issues-mcs 2005-07-14 14:39:26 UTC (rev 47305)
+++ trunk/mcs/errors/known-issues-mcs 2005-07-14 14:47:50 UTC (rev 47306)
@@ -11,7 +11,6 @@
# csXXXX.cs NO ERROR : error test case doesn't report any error. An
exception is considered
# as NO ERROR and CS5001 is automatically ignored.
-cs0118.cs
cs0121-3.cs NO ERROR
cs0201.cs
cs0202.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches