repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
test-310.cs
blob
95c49e74d178d26cfa04a0c1df6844febc475cb9
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
}