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
Merge pull request #4202 from marek-safar/compression
[mono-project.git]
/
mcs
/
tests
/
gtest-429.cs
blob
d4327e0ebb813255f881884e7e697c9369e22d2b
1
using
System
;
2
3
public struct
CInt
4
{
5
int
data
;
6
7
public
CInt
(
int
data
)
8
{
9
this
.
data
=
data
;
10
}
11
12
public static implicit operator
CInt
(
int
xx
)
13
{
14
return new
CInt
(
xx
);
15
}
16
17
public static implicit operator int
(
CInt xx
)
18
{
19
return
xx
.
data
;
20
}
21
}
22
23
24
public class
Klass
25
{
26
public
CInt
?
Value
;
27
public
Klass
(
CInt
?
t
)
28
{
29
this
.
Value
=
t
;
30
}
31
}
32
33
public class
MainClass
34
{
35
public static int
Main
()
36
{
37
var
v
=
new
Klass
(
3
);
38
return
v
.
Value
.
Value
-
3
;
39
}
40
}