repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
dtest-optional-02.cs
blob
e3b80eea991de74a3372801f5f61533fca60c338
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
}