projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated with review feedback.
[mono.git]
/
mcs
/
tests
/
test-310.cs
1
namespace test
2
{
3
4
interface IIntf1
5
{
6
string GetType(int index);
7
}
8
9
interface IIntf2: IIntf1
10
{
11
bool IsDone();
12
}
13
14
class Impl: IIntf2
15
{
16
public string GetType(int index)
17
{
18
return "none";
19
}
20
21
public bool IsDone()
22
{
23
return true;
24
}
25
}
26
27
class myclass
28
{
29
30
public static void Main(string[] args)
31
{
32
IIntf1 intf = new Impl();
33
IIntf2 intf2 = intf as IIntf2;
34
if (intf2 != null) {
35
string str = intf2.GetType(0);
36
}
37
}
38
}
39
}