projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Better error reporting for missing identifiers.
[mono.git]
/
mcs
/
errors
/
cs0457-2.cs
1
// cs0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int'
2
// Line: 20
3
4
class A
5
{
6
public static implicit operator ushort (A mask)
7
{
8
return 1;
9
}
10
11
public static implicit operator short (A mask)
12
{
13
return 2;
14
}
15
}
16
17
class X
18
{
19
static A a = null;
20
static object o = -a;
21
}