repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In class/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
gtest-422.cs
blob
0fdcfd13053300ac1c1761bbd0c94c072b136fcd
1
class
A
2
{
3
public static bool operator
> (
A a
,
object
b
)
4
{
5
return false
;
6
}
7
8
public static bool operator
< (
A a
,
object
b
)
9
{
10
return true
;
11
}
12
}
13
14
class
C
15
{
16
public static int
Main
()
17
{
18
return new
C
().
Test
() ?
1
:
0
;
19
}
20
21
int
?
Id
{
22
get
{ return 1; }
23
}
24
25
bool
Test
()
26
{
27
A a
=
new
A
();
28
bool
b
=
a
>
Id
&&
a
<
Id
;
29
return
b
;
30
}
31
}