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>2008-08-11 17:16:08 +0400
committerMarek Safar <marek.safar@gmail.com>2008-08-11 17:16:08 +0400
commit88db482f051919ad7d2237e8e7a31bdcc1fbc2ab (patch)
tree587df075082afc1b954b7d12c4505a62cb051b74 /mcs/errors/cs0121-3.cs
parent0dec9096c8534a966814c03dfabcb7995900904a (diff)
New tests.
svn path=/trunk/mcs/; revision=110104
Diffstat (limited to 'mcs/errors/cs0121-3.cs')
-rwxr-xr-xmcs/errors/cs0121-3.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/errors/cs0121-3.cs b/mcs/errors/cs0121-3.cs
new file mode 100755
index 00000000000..0ecedd64a51
--- /dev/null
+++ b/mcs/errors/cs0121-3.cs
@@ -0,0 +1,23 @@
+// CS0121: The call is ambiguous between the following methods or properties: `B.operator +(A, B)' and `A.operator +(A, B)'
+// Line: 21
+
+class A
+{
+ public static A operator + (A a, B b)
+ {
+ return null;
+ }
+}
+
+class B
+{
+ public static A operator + (A a, B b)
+ {
+ return null;
+ }
+
+ static void Main ()
+ {
+ object o = new A () + new B ();
+ }
+}