Author: marek
Date: 2005-02-28 09:14:39 -0500 (Mon, 28 Feb 2005)
New Revision: 41283
Added:
trunk/mcs/errors/cs0550-2.cs
trunk/mcs/errors/cs0557-2.cs
trunk/mcs/errors/cs1501-9.cs
trunk/mcs/errors/cs1634.cs
trunk/mcs/errors/cs1671-2.cs
trunk/mcs/errors/cs1671.cs
Removed:
trunk/mcs/errors/cs0111-8.cs
trunk/mcs/errors/cs0186.cs
trunk/mcs/errors/cs1518-2.cs
trunk/mcs/errors/cs1518-3.cs
Modified:
trunk/mcs/errors/cs0069.cs
trunk/mcs/errors/cs0525-2.cs
trunk/mcs/errors/cs0548-2.cs
trunk/mcs/errors/cs0548-3.cs
trunk/mcs/errors/mcs-expect-no-error
trunk/mcs/errors/mcs-expect-wrong-error
Log:
more tests + updated fixed
Modified: trunk/mcs/errors/cs0069.cs
===================================================================
--- trunk/mcs/errors/cs0069.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0069.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -3,14 +3,10 @@
using System;
-class ErrorCS0069 {
- public delegate void FooHandler ();
- public static void Main () {
- }
-}
+public delegate void FooHandler ();
interface IBar {
- event OnFoo {
+ event FooHandler OnFoo {
add { }
remove { }
}
Deleted: trunk/mcs/errors/cs0111-8.cs
===================================================================
--- trunk/mcs/errors/cs0111-8.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0111-8.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,26 +0,0 @@
-// cs0111.cs: Duplicated method definition for the operator
-//
-class C {
- public static bool operator != (C a, C b)
- {
- return true;
- }
-
- public static bool operator != (C a, C b)
- {
- return true;
- }
-
- public static bool operator == (C a, C b)
- { return false; }
- }
-
-
-
-
-
-class X {
- static void Main ()
- {
- }
-}
Deleted: trunk/mcs/errors/cs0186.cs
===================================================================
--- trunk/mcs/errors/cs0186.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0186.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,11 +0,0 @@
-// cs0186.cs: Use of null is not valid in this context
-// Line: 8
-
-using System;
-
-class ClassMain {
- public static void Main() {
- Exception e = (object)null as Exception;
- }
-}
-
Modified: trunk/mcs/errors/cs0525-2.cs
===================================================================
--- trunk/mcs/errors/cs0525-2.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0525-2.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,2 +1,7 @@
-// cs0525.cs: Interfaces cannot contain fields// Line: 5
-interface Interface { const bool value = false;}
\ No newline at end of file
+// cs0525.cs: Interfaces cannot contain fields
+// Line: 9
+
+interface Interface
+{
+ const bool value = false;
+}
Modified: trunk/mcs/errors/cs0548-2.cs
===================================================================
--- trunk/mcs/errors/cs0548-2.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0548-2.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,4 +1,7 @@
-// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least
one accessor// Line: 5
-interface PropertyInterface { int Value {}}
+// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least
one accessor
+// Line: 5
+interface PropertyInterface {
+ int Value {}
+}
Modified: trunk/mcs/errors/cs0548-3.cs
===================================================================
--- trunk/mcs/errors/cs0548-3.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0548-3.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,4 +1,7 @@
-// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least
one accessor// Line: 5
-interface PropertyInterface { int this [long l] {}}
+// cs0548.cs: 'PropertyClass.Value' : property or indexer must have at least
one accessor
+// Line: 5
+interface PropertyInterface {
+ int this [long l] {}
+}
Added: trunk/mcs/errors/cs0550-2.cs
===================================================================
--- trunk/mcs/errors/cs0550-2.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs0550-2.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -0,0 +1,19 @@
+// cs0550.cs: 'PropertyClass.PropertyInterface.this[bool].get' adds an
accessor not found in interface member 'PropertyInterface.Value'
+// Line: 13
+
+using System.Runtime.CompilerServices;
+
+interface PropertyInterface {
+ int this[bool b] { set; }
+}
+
+public class PropertyClass: PropertyInterface {
+ int PropertyInterface.this [bool b]{
+ get {
+ return 0;
+ }
+ set { }
+ }
+}
+
+
Copied: trunk/mcs/errors/cs0557-2.cs (from rev 41274,
trunk/mcs/errors/cs0111-8.cs)
Added: trunk/mcs/errors/cs1501-9.cs
===================================================================
--- trunk/mcs/errors/cs1501-9.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs1501-9.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -0,0 +1,4 @@
+using System;
+
+[assembly:CLSCompliant()]
+
Deleted: trunk/mcs/errors/cs1518-2.cs
===================================================================
--- trunk/mcs/errors/cs1518-2.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs1518-2.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,34 +0,0 @@
-// cs1518-2.cs : Attributes cannot be applied to namespaces.
-// Line: 5
-using System;
-
-[error_1518(11)]
-namespace Mono.Tests
-{
- [AttributeUsage(AttributeTargets.All)]
- public class error_1518Attribute : Attribute
- {
- private int x;
-
- public error_1518Attribute(int x)
- {
- this.x = x;
- }
-
- public int X
- {
- get
- {
- return x;
- }
- }
- }
-
- [error_1518(10)]
- public class error_1518Class
- {
- public error_1518Class()
- {
- }
- }
-}
\ No newline at end of file
Deleted: trunk/mcs/errors/cs1518-3.cs
===================================================================
--- trunk/mcs/errors/cs1518-3.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs1518-3.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -1,20 +0,0 @@
-// cs1518.cs : Attribute cannot be applied to namespaces. Expected class,
delegate, enum, interface, or struct
-// Line : 14
-
-using System;
-
-[assembly: CLSCompliant (false)]
-
-namespace N
-{
-}
-
-[assembly: Obsolete]
-
-namespace M
-{
-}
-
-public class C {
- public static void Main () {}
-}
\ No newline at end of file
Added: trunk/mcs/errors/cs1634.cs
===================================================================
--- trunk/mcs/errors/cs1634.cs 2005-02-28 14:12:50 UTC (rev 41282)
+++ trunk/mcs/errors/cs1634.cs 2005-02-28 14:14:39 UTC (rev 41283)
@@ -0,0 +1,5 @@
+// cs1634.cs:Expected disable or restore
+// Line: 5
+// Compiler options: -warnaserror
+
+#pragma warning
Copied: trunk/mcs/errors/cs1671-2.cs (from rev 41274,
trunk/mcs/errors/cs1518-3.cs)
Copied: trunk/mcs/errors/cs1671.cs (from rev 41274,
trunk/mcs/errors/cs1518-2.cs)
Modified: trunk/mcs/errors/mcs-expect-no-error
===================================================================
--- trunk/mcs/errors/mcs-expect-no-error 2005-02-28 14:12:50 UTC (rev
41282)
+++ trunk/mcs/errors/mcs-expect-no-error 2005-02-28 14:14:39 UTC (rev
41283)
@@ -12,10 +12,10 @@
cs0121-3.cs
cs0186.cs
cs0229.cs
-cs0249.cs
cs0576.cs
cs0642-2.cs
cs0642.cs
+cs0647.cs # corlib bug
cs0652.cs
cs1035.cs
cs2023.cs
Modified: trunk/mcs/errors/mcs-expect-wrong-error
===================================================================
--- trunk/mcs/errors/mcs-expect-wrong-error 2005-02-28 14:12:50 UTC (rev
41282)
+++ trunk/mcs/errors/mcs-expect-wrong-error 2005-02-28 14:14:39 UTC (rev
41283)
@@ -9,47 +9,31 @@
cs0012.cs
cs0029.cs
-cs0069.cs
cs0116-2.cs
cs0118.cs
cs0119.cs
cs0128.cs
cs0173.cs
cs0192-2.cs
-cs0200.cs
cs0201.cs
cs0208-3.cs
cs0229-2.cs
-cs0525-2.cs
cs0525.cs
cs0526.cs
cs0529.cs
-cs0531-2.cs
-cs0531.cs
-cs0547-2.cs
cs0547.cs
-cs0548-2.cs
-cs0548-3.cs
cs0548-4.cs
cs0548.cs
-cs0550.cs
-cs0551.cs
-cs0557.cs
cs0560.cs
cs0567.cs
cs0642-3.cs
cs0642-4.cs
cs0642-5.cs
cs0642-6.cs
-cs0647-12.cs
-cs0647-13.cs
-cs0650.cs
cs0654.cs
cs0681.cs
cs0683.cs
cs0686.cs
-cs1007.cs
-cs1014.cs
cs1501-5.cs
cs1513.cs
cs1518.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches