projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-283.cs
1
class X {
2
public virtual int Foo () {
3
return 1;
4
}
5
}
6
7
class Y : X {
8
9
delegate int D();
10
11
12
D GetIt () {
13
return new D (base.Foo);
14
}
15
16
D GetIt2 () {
17
return base.Foo;
18
}
19
20
public override int Foo () {
21
return 0;
22
}
23
24
static int Main ()
25
{
26
if (new Y ().GetIt () () == 1 && new Y ().GetIt2 () () == 1) {
27
System.Console.WriteLine ("good");
28
return 0;
29
}
30
31
return 1;
32
}
33
}