blob: 748ae5d24891aa227986e64343d83db8acef7ff5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
Program: test
using Foo.Sub;
public class GlobalTestClass {
public GlobalTestClass() {
}
}
namespace Maman {
public class GlobalTestClass {
public GlobalTestClass() {
stdout.printf("Incorrect class constructed");
}
}
static int main (string[] args) {
stdout.printf ("Namespace Test\n");
Bar.run ();
new global::GlobalTestClass();
var obj = new ClassInNestedNamespace ();
return 0;
}
class Bar : Object {
public static void run () {
stdout.printf ("Class in Namespace Test\n");
}
}
}
public class Foo.Sub.ClassInNestedNamespace {
}
|