projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 throw expression
[mono.git]
/
mcs
/
tests
/
gtest-optional-06.cs
1
using System;
2
3
delegate int D (int i = 1);
4
5
class C
6
{
7
static int Foo (int i = 9)
8
{
9
return i;
10
}
11
12
public static int Main ()
13
{
14
D d = new D (Foo);
15
var res = d ();
16
if (res != 1)
17
return 1;
18
19
Console.WriteLine (res);
20
return 0;
21
}
22
}