projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5675 from mono/glib-debug-symbols
[mono.git]
/
mcs
/
tests
/
dtest-038.cs
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
}