summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0104-3.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0104-3.cs')
-rw-r--r--mcs/errors/cs0104-3.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/mcs/errors/cs0104-3.cs b/mcs/errors/cs0104-3.cs
new file mode 100644
index 0000000000..95e116ead4
--- /dev/null
+++ b/mcs/errors/cs0104-3.cs
@@ -0,0 +1,33 @@
+// CS0104: `X' is an ambiguous reference between `A.X' and `B.X'
+// Line: 25
+
+namespace A
+{
+ class X { }
+}
+
+namespace B
+{
+ class X { }
+}
+
+namespace C
+{
+ using System;
+ using A;
+ using B;
+
+ class Test
+ {
+ static void Main ()
+ {
+ Foo (delegate {
+ X x;
+ });
+ }
+
+ static void Foo (Action a)
+ {
+ }
+ }
+}