2005-01-10 Marek Safar <marek.safar@seznam.cz>
authorMarek Safar <marek.safar@gmail.com>
Mon, 10 Jan 2005 09:00:05 +0000 (09:00 -0000)
committerMarek Safar <marek.safar@gmail.com>
Mon, 10 Jan 2005 09:00:05 +0000 (09:00 -0000)
* cs0612-2.cs, CS0612-2-lib.cs: Bug #70722.

svn path=/trunk/mcs/; revision=38602

mcs/errors/CS0612-2-lib.cs [new file with mode: 0644]
mcs/errors/ChangeLog
mcs/errors/Makefile
mcs/errors/cs0612-2.cs [new file with mode: 0644]

diff --git a/mcs/errors/CS0612-2-lib.cs b/mcs/errors/CS0612-2-lib.cs
new file mode 100644 (file)
index 0000000..dca7115
--- /dev/null
@@ -0,0 +1,6 @@
+using System;
+
+public class Foo {
+        [Obsolete]
+        public int Bar { get { return 0; } }
+}
index 640f94f5bf1d1d61652d12d80f8c58b0a83d9a9b..cd29c0753fef87cfcd7ec6e95184200e38bf51db 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-10 Marek Safar <marek.safar@seznam.cz>
+
+       * cs0612-2.cs, CS0612-2-lib.cs: Bug #70722.
+       
 2005-01-07 Marek Safar <marek.safar@seznam.cz>
 
        * cs0102-14.cs: Bug #70942.
index cdd0deb53afccd9fe7588b02ed5c826ba48cbf4d..18d68cc1a92f1bed3a468b6e267eef22e1ce8d49 100644 (file)
@@ -26,7 +26,7 @@ DISTFILES = \
        generics-expect-no-error generics-expect-wrong-error
 
 #all-local: run-test-local test-multi-local
-all-local: CS0571-3-lib.dll CS0618-2-lib.dll \
+all-local: CS0571-3-lib.dll CS0612-2-lib.dll CS0618-2-lib.dll \
        CS0619-8-lib.dll CS0619-17-lib.dll CS0619-32-lib.dll CS0619-33-lib.dll CS0619-36-lib.dll \
        CS3005-16-lib.dll CS3013-module.dll
 
diff --git a/mcs/errors/cs0612-2.cs b/mcs/errors/cs0612-2.cs
new file mode 100644 (file)
index 0000000..cd15f05
--- /dev/null
@@ -0,0 +1,9 @@
+// Compiler options: -r:CS0612-2-lib.dll -warnaserror
+
+public class Bar {
+        public static int Main ()
+        {
+                Foo foo = new Foo ();
+                return foo.Bar;
+        }
+}