diff --git a/mcs/errors/cs0120-15.cs b/mcs/errors/cs0120-15.cs new file mode 100644 index 000000000000..6caa58756118 --- /dev/null +++ b/mcs/errors/cs0120-15.cs @@ -0,0 +1,23 @@ +// CS0120: An object reference is required to access non-static member `MainClass.Test' +// Line: 20 + +public class Test +{ + public void Foo () + { + } +} + +public class MainClass +{ + public Test Test + { + get; + set; + } + + public static void Main (string[] args) + { + Test.Foo (); + } +} diff --git a/mcs/errors/cs0023-6.cs b/mcs/errors/cs1525-16.cs similarity index 54% rename from mcs/errors/cs0023-6.cs rename to mcs/errors/cs1525-16.cs index ea261add0938..ae0619b6200b 100644 --- a/mcs/errors/cs0023-6.cs +++ b/mcs/errors/cs1525-16.cs @@ -1,4 +1,4 @@ -// CS0023: The `.' operator cannot be applied to operand of type `void' +// CS1525: Unexpected symbol `void' // Line: 8 class C @@ -7,4 +7,4 @@ public static void Main () { string s = void.ToString (); } -} \ No newline at end of file +}