projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Fixes codegen for type pattern matching in probing expressions over hoisted...
[mono.git]
/
mcs
/
tests
/
dtest-optional-02.cs
1
using System.Runtime.InteropServices;
2
3
public class Test
4
{
5
public static object Foo ([Optional, DefaultParameterValue (1)] dynamic i)
6
{
7
return i;
8
}
9
10
public static int Main ()
11
{
12
var res = (int) Foo ();
13
if (res != 1)
14
return 1;
15
16
return 0;
17
}
18
}