diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-08-11 17:16:08 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-08-11 17:16:08 +0400 |
commit | 88db482f051919ad7d2237e8e7a31bdcc1fbc2ab (patch) | |
tree | 587df075082afc1b954b7d12c4505a62cb051b74 /mcs/errors/cs0121-3.cs | |
parent | 0dec9096c8534a966814c03dfabcb7995900904a (diff) |
New tests.
svn path=/trunk/mcs/; revision=110104
Diffstat (limited to 'mcs/errors/cs0121-3.cs')
-rwxr-xr-x | mcs/errors/cs0121-3.cs | 23 |
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 (); + } +} |