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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
gtest-optional-27.cs
blob
50558c2bf0dc1581ac0b6e8656148001914ff8ca
1
using
System
;
2
3
class
EnumWrapperCtor
<
T
>
4
{
5
public enum
Test
6
{
7
Wrong
,
8
MyDefault
9
}
10
11
readonly
Test myVal
;
12
13
public
EnumWrapperCtor
(
Test
value
=
Test
.
MyDefault
)
14
{
15
myVal
=
value
;
16
}
17
18
public
Test
getValue
()
19
{
20
return
myVal
;
21
}
22
}
23
24
public class
C
25
{
26
public static int
Main
()
27
{
28
var
ew
=
new
EnumWrapperCtor
<
int
> ();
29
if
((
int
)
ew
.
getValue
() !=
1
)
30
return
1
;
31
32
return
0
;
33
}
34
}