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
Take stars out of types where they make more sense.
[mono-project.git]
/
mcs
/
tests
/
dtest-038.cs
blob
e6f747bde8bd18de6d3443725522be6f186b1b21
1
using
System
;
2
using
Microsoft
.
CSharp
.
RuntimeBinder
;
3
4
public class
Test
5
{
6
void
Foo
()
7
{
8
}
9
10
public static int
Main
()
11
{
12
dynamic
d
=
new
Test
();
13
14
var
t1
=
true
?
d
:
2
;
15
t1
.
Foo
();
16
17
var
t2
=
true
?
1
:
d
;
18
if
(
t2
!=
1
)
19
return
1
;
20
21
try
{
22
t2
.
Foo
();
23
return
2
;
24
}
catch
(
RuntimeBinderException
) {
25
}
26
27
return
0
;
28
}
29
}