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
Fix LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
test-126.cs
blob
fd3f6d11ad46473bf978c1811d30b2a5182eaa6c
1
//
2
// It is possible to invoke object methods in an interface.
3
//
4
using
System
;
5
6
interface
Iface
{
7
void
Method
();
8
}
9
10
class
X
:
Iface
{
11
12
void
Iface
.
Method
() {}
13
14
public static int
Main
()
15
{
16
X x
=
new
X
();
17
Iface f
=
x
;
18
19
if
(
f
.
ToString
() !=
"X"
)
20
return
1
;
21
22
return
0
;
23
}
24
}