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
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-840.cs
blob
5c4a93aeb2e65691f0af84eff078fff7b054af12
1
struct
R
2
{
3
public static bool operator
< (
R left
,
R right
)
4
{
5
return true
;
6
}
7
8
public static bool operator
> (
R left
,
R right
)
9
{
10
return false
;
11
}
12
13
public static implicit operator float
(
R r
)
14
{
15
return
5
;
16
}
17
18
public static implicit operator
R
(
float
f
)
19
{
20
return new
R
();
21
}
22
}
23
24
class
C
25
{
26
public static int
Main
()
27
{
28
var
r
=
new
R
();
29
float
f
=
999
f
;
30
31
bool
b
=
f
<
r
;
32
if
(!
b
)
33
return
1
;
34
35
return
0
;
36
}
37
}