diff options
author | Martin Baulig <martin@novell.com> | 2004-05-26 00:18:25 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-05-26 00:18:25 +0400 |
commit | 810bd43c2b50670381a856f10091022ddab529bb (patch) | |
tree | d7fc86e25b87cfd639c9ce4e0c8e9a1b19db9aad /mcs/errors | |
parent | 74dedf71a1372a6ded52940d5b93352be3fc1dc5 (diff) |
New test.
svn path=/trunk/mcs/; revision=28079
Diffstat (limited to 'mcs/errors')
-rw-r--r-- | mcs/errors/cs0176-2.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/errors/cs0176-2.cs b/mcs/errors/cs0176-2.cs new file mode 100644 index 00000000000..ec60058107c --- /dev/null +++ b/mcs/errors/cs0176-2.cs @@ -0,0 +1,19 @@ +// CS0176: Static member `Start' cannot be accessed with an instance reference, qualify with a type name instead +// Line: 10 +using System; + +class TestIt +{ + public static void Main() + { + MyClass p = new MyClass(); + p.Start ("hi"); + } +} + +class MyClass +{ + public static void Start (string info) + { + } +} |