Add new test, updates
authorMarek Safar <marek.safar@gmail.com>
Tue, 12 Jun 2007 13:00:41 +0000 (13:00 -0000)
committerMarek Safar <marek.safar@gmail.com>
Tue, 12 Jun 2007 13:00:41 +0000 (13:00 -0000)
svn path=/trunk/mcs/; revision=79256

mcs/errors/cs0179-2.cs
mcs/errors/cs0179-3.cs
mcs/errors/cs0500-2.cs
mcs/errors/cs0501.cs
mcs/errors/gcs0840.cs [new file with mode: 0644]

index bfa2334d77ebd94b600e1883443460dc3b0ed3be..17d74a7ea74c390867497d09ce0720b8b7486060 100644 (file)
@@ -1,4 +1,4 @@
-// CS0179: `Bar.OnFoo' cannot declare a body because it is marked extern
+// CS0179: `Bar.OnFoo.add' cannot declare a body because it is marked extern
 // Line: 9
 
 using System;
index 724978e5234555853fd2ea466a46e79f29f35b46..14d5e548cab5d7e8cb173e171270f795ce6d26a1 100644 (file)
@@ -1,4 +1,4 @@
-// CS0179: `Bar.Foo' cannot declare a body because it is marked extern
+// CS0179: `Bar.Foo.set' cannot declare a body because it is marked extern
 // Line: 5
 
 class Bar {
index c768f39e4c39db09bada79565068d4a56532dbc9..2dd2a0c2226b36814650c85b41f7f26a407ebb1c 100644 (file)
@@ -1,4 +1,4 @@
-// cs0500.cs: `A.Foo' cannot declare a body because it is marked abstract
+// cs0500.cs: `A.Foo.get' cannot declare a body because it is marked abstract
 // Line: 5
 
 public abstract class A {
index f14e572d85b5d125161b6e7d33fb9c60c6bcfe38..0084ba965de702176ac3261715839d2db4cd7b27 100644 (file)
@@ -1,5 +1,6 @@
-// cs0501.cs: `Class.X()' must declare a body because it is not marked abstract or extern
-// Line: 4
+// CS0501: `Class.X()' must have a body because it is not marked abstract or extern
+// Line: 5
+
 class Class {
        virtual public void X ();
 }
diff --git a/mcs/errors/gcs0840.cs b/mcs/errors/gcs0840.cs
new file mode 100644 (file)
index 0000000..fb98817
--- /dev/null
@@ -0,0 +1,8 @@
+// CS0840: `Test.Property.get' must have a body because it is not marked abstract or extern. The property can be automatically implemented when you define both accessors
+// Line: 7
+// Compiler options: -langversion:linq
+
+public abstract class Test
+{
+       public string Property { get; }
+}