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
[loader] LoadFrom of problematic images should reprobe
[mono-project.git]
/
mcs
/
errors
/
cs0034-6.cs
blob
d6ebe8e34db5c8108f2260a30b4e22b6169b906e
1
// CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo'
2
// Line: 23
3
4
public struct
Foo
5
{
6
public static implicit operator int
? (
Foo f
)
7
{
8
return
1
;
9
}
10
11
public static implicit operator bool
? (
Foo f
)
12
{
13
return false
;
14
}
15
}
16
17
class
C
18
{
19
public static void
Main
()
20
{
21
Foo f
;
22
Foo f2
;
23
var
v
=
f
==
f2
;
24
}
25
}