repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs0457.cs
blob
4a96f68e70dda8997e8e308a365a9b5db0e65cd9
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 sbyte
(
A mask
)
7
{
8
return
1
;
9
}
10
11
public static implicit operator byte
(
A mask
)
12
{
13
return
2
;
14
}
15
}
16
17
class
X
18
{
19
static
A a
=
null
;
20
static object
o
=
~a
;
21
}