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-283.cs
blob
7d7a1faa211436888672654fd6e53063ef909553
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
public 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
}