diff options
author | Martin Baulig <martin@novell.com> | 2002-08-28 01:16:29 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2002-08-28 01:16:29 +0400 |
commit | 6718c8a85d94586c04832c4bbf940bb39735a73c (patch) | |
tree | 2bdbeecccb543b7d720ba41233680097e4a629b3 /mcs/errors/cs0120-3.cs | |
parent | f2008bcb4a84b994d2e07d0d3dd12bf09d74183b (diff) |
2002-08-27 Martin Baulig <martin@gnome.org>
* cs0120-3.cs: New test.
svn path=/trunk/mcs/; revision=7110
Diffstat (limited to 'mcs/errors/cs0120-3.cs')
-rw-r--r-- | mcs/errors/cs0120-3.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/errors/cs0120-3.cs b/mcs/errors/cs0120-3.cs new file mode 100644 index 00000000000..66faa809f50 --- /dev/null +++ b/mcs/errors/cs0120-3.cs @@ -0,0 +1,14 @@ +// cs0120: `An object reference is required for the nonstatic field, method or property test.method() +// Line: 11 + +class X { + + void method () + { + } + + public static int Main (string [] args){ + X.method (); + return 1; + } +} |