projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add CopyPath, CopyPathFlat, AppendPath
[mono.git]
/
mcs
/
tests
/
test-126.cs
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
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
}