projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' of github.com:mono/mono
[mono.git]
/
mcs
/
tests
/
dtest-029.cs
1
class C
2
{
3
static bool Test<T, U>(T t, U u)
4
{
5
dynamic d1 = 1;
6
dynamic d2 = "a";
7
return d1 == t && d2 == u;
8
}
9
10
static bool Test2(int i)
11
{
12
dynamic d1 = 1;
13
return d1 == i;
14
}
15
16
public static int Main ()
17
{
18
if (!Test (1, "a"))
19
return 1;
20
21
if (Test (2, "a"))
22
return 2;
23
24
if (Test (1, "----"))
25
return 3;
26
27
if (!Test2 (1))
28
return 4;
29
30
if (Test2 (2))
31
return 5;
32
33
return 0;
34
}
35
}