repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* xbuild/Microsoft.Common.targets: For referenced projects,
[mcs.git]
/
tests
/
test-722.cs
blob
182c78fe30c95cf05839264b6a506220b16fb477
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
}