projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Geoff Norton <gnorton@novell.com>
[mono.git]
/
mcs
/
errors
/
cs0034-2.cs
1
// cs0034-2.cs : Operator `+' is ambiguous on operands of type `A' and `A'
2
// Line: 22
3
4
public class A {
5
public static implicit operator int (A a)
6
{
7
return 0;
8
}
9
10
public static implicit operator string (A a)
11
{
12
return "a";
13
}
14
15
public static void Main ()
16
{
17
A a = new A ();
18
object o = a + a;
19
System.Console.WriteLine (o);
20
}
21
}