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
Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git]
/
mcs
/
tests
/
gtest-603.cs
blob
dcaf7a251984b7babcaa6d39fa9876bca99a3ee8
1
using
System
;
2
3
public class
A
<
T
>
4
{
5
T
value
;
6
7
public
A
(
T
value
)
8
{
9
this
.
value
=
value
;
10
}
11
12
public static explicit operator
T
(
A
<
T
>
source
)
13
{
14
return
source
.
value
;
15
}
16
}
17
18
public class
Test
19
{
20
public static int
Main
()
21
{
22
var
source
=
new
A
<
int
?> (
3
);
23
if
(
N
((
int
)
source
) !=
3
)
24
return
1
;
25
26
return
0
;
27
}
28
29
static int
N
(
int value
)
30
{
31
return value
;
32
}
33
}