projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2003-04-11 Ville Palo <vi64pa@kolumbus.fi>
[mono.git]
/
mcs
/
tests
/
test-166.cs
1
using System;
2
3
interface ITargetInfo
4
{
5
int TargetIntegerSize {
6
get;
7
}
8
}
9
10
interface ITargetMemoryAccess : ITargetInfo
11
{
12
}
13
14
interface IInferior : ITargetMemoryAccess
15
{
16
}
17
18
class D : IInferior
19
{
20
public int TargetIntegerSize {
21
get { return 5; }
22
}
23
24
int Hello (IInferior inferior)
25
{
26
return inferior.TargetIntegerSize;
27
}
28
29
static int Main ()
30
{
31
D d = new D ();
32
33
if (d.Hello (d) != 5)
34
return 1;
35
36
return 0;
37
}
38
}