projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Don't insta-fail when a faulty COM type is encountered. (#5616)
[mono.git]
/
mcs
/
tests
/
dtest-010.cs
1
class A
2
{
3
public static T Test<T> (T a, T b)
4
{
5
return b;
6
}
7
}
8
9
class C
10
{
11
int TestCall ()
12
{
13
return 1;
14
}
15
16
public static int Main ()
17
{
18
dynamic d = 0;
19
object o = new C ();
20
21
if (A.Test<dynamic> (d, o).TestCall () != 1)
22
return 1;
23
24
if (A.Test (d, o).TestCall () != 1)
25
return 2;
26
27
return 0;
28
}
29
}