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
remove NotWorking
[mcs.git]
/
tests
/
gtest-468.cs
blob
a7e0506bb4d0f0935b27772947ecbdec88490c63
1
using
System
;
2
3
public class
TS
4
{
5
public int
?
v
{
6
get
{ return (int?) this; }
7
}
8
9
public static implicit operator int
? (
TS s
)
10
{
11
return
5
;
12
}
13
14
public static implicit operator
TS
(
int
?
date
)
15
{
16
return null
;
17
}
18
19
public static int
Main
()
20
{
21
var
r
=
new
TS
().
v
;
22
if
(
r
!=
5
)
23
return
1
;
24
25
return
0
;
26
}
27
}