projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git]
/
mcs
/
tests
/
gtest-optional-27.cs
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
}