Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2011-04-01 15:01:43 +0400
committerMarek Safar <marek.safar@gmail.com>2011-04-01 15:17:12 +0400
commitb3a37c24b4557515c838a513cfddf6dbba628ef2 (patch)
treea799cddde6a3ae16e84db2f837b39882bd59e2d4 /mcs/tests/test-820.cs
parentc0c51c0791c3f03a9c134eb9cdf94b9ecc4e2fbe (diff)
Check name collision between namespaces and types
Diffstat (limited to 'mcs/tests/test-820.cs')
-rw-r--r--mcs/tests/test-820.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/test-820.cs b/mcs/tests/test-820.cs
new file mode 100644
index 00000000000..b6822815a94
--- /dev/null
+++ b/mcs/tests/test-820.cs
@@ -0,0 +1,22 @@
+// Compiler options: -main:C
+
+using System;
+
+namespace NS
+{
+ public class C
+ {
+ public static void Main ()
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
+public class C
+{
+ public static int Main (string[] a)
+ {
+ return 0;
+ }
+}