diff options
author | Martin Baulig <martin@novell.com> | 2003-07-10 19:01:09 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2003-07-10 19:01:09 +0400 |
commit | c5c295d0b42b7ac3a207e9facbda9ae189ce9868 (patch) | |
tree | 323f6dcbfa2c4314fe27910018eff9e55ec27b5d /mcs/errors/cs0673.cs | |
parent | 800e914e17d115f0a81d2ae2a6e667170272280c (diff) |
New test for CS0673.
svn path=/trunk/mcs/; revision=16100
Diffstat (limited to 'mcs/errors/cs0673.cs')
-rw-r--r-- | mcs/errors/cs0673.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/errors/cs0673.cs b/mcs/errors/cs0673.cs new file mode 100644 index 00000000000..fd5ea5329b0 --- /dev/null +++ b/mcs/errors/cs0673.cs @@ -0,0 +1,11 @@ +// +// cs0673.cs: System.Void cannot be used from C# -- use typeof (void) to get the void type object. +// + +public class X +{ + public static void Main() + { + Type t = typeof (System.Void); + } +} |