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
2009-07-17 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-281.cs
blob
880e602930f7abc4e1d4eb433b12b12b00430396
1
namespace
Foo
2
{
3
public class
Hello
4
{
5
public static int
World
=
8
;
6
}
7
}
8
9
namespace
Bar
10
{
11
public class
Hello
12
{
13
public static int
World
=
9
;
14
}
15
}
16
17
namespace
Test
18
{
19
using
Foo
;
20
21
public class
Test1
22
{
23
public static int
World
()
24
{
25
return
Hello
.
World
;
26
}
27
}
28
}
29
30
namespace
Test
31
{
32
using
Bar
;
33
34
public class
Test2
35
{
36
public static int
World
()
37
{
38
return
Hello
.
World
;
39
}
40
}
41
}
42
43
class
X
44
{
45
static int
Main
()
46
{
47
if
(
Test
.
Test1
.
World
() !=
8
)
48
return
1
;
49
if
(
Test
.
Test2
.
World
() !=
9
)
50
return
2
;
51
return
0
;
52
}
53
}