projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
another test (does not work at the moment)
[mono.git]
/
mono
/
tests
/
iface2.cs
1
interface IA
2
{
3
int Add(int i);
4
}
5
6
interface IB
7
{
8
int Add(int i);
9
}
10
11
interface IC : IA, IB {}
12
13
class D : IC
14
{
15
int IA.Add (int i) {
16
return 5;
17
}
18
19
int IB.Add (int i) {
20
return 6;
21
}
22
}
23
24
25
class C
26
{
27
static int Test(IC n) {
28
29
if (((IA)n).Add(0) != 5)
30
return 1;
31
32
if (((IB)n).Add(0) != 6)
33
return 1;
34
35
36
return 0;
37
}
38
39
static int Main()
40
{
41
D d = new D();
42
43
return Test (d);
44
}
45
}
46