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
monotouch uses the real HttpWebRequest
[mcs.git]
/
tests
/
test-283.cs
blob
f4b0bc8d06f476ab4ee56e52b36ae4ce42f466ac
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
}