repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
tests
/
gtest-182.cs
blob
0adb189b82330bcb480990a889c6e706d5f1f034
1
interface
IMember
{
2
int
GetId
();
3
}
4
5
interface
IMethod
:
IMember { }
6
7
class
C1
:
IMethod
8
{
9
public int
GetId
()
{ return 42; }
10
}
11
12
class
X
{
13
static void
foo
<
a
> (
a e
)
14
where a
:
IMember
15
{
16
e
.
GetId
();
17
}
18
19
public static void
Main
()
20
{
21
foo
<
IMethod
> (
new
C1
());
22
}
23
}