projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-07-11 Michael Barker <mike@middlesoft.co.uk>
[mono.git]
/
mcs
/
tests
/
test-722.cs
1
// Compiler options: -langversion:future
2
3
using System;
4
5
public class Blah
6
{
7
public delegate int MyDelegate (int i, int j = 7);
8
9
public int Foo (int i, int j)
10
{
11
return i+j;
12
}
13
14
public static int Main ()
15
{
16
Blah i = new Blah ();
17
MyDelegate del = new MyDelegate (i.Foo);
18
19
int number = del (2);
20
21
Console.WriteLine (number);
22
if (number != 9)
23
return 1;
24
25
return 0;
26
}
27
}