blob: 57b9ff8a0814a82a25a03719cc3df77d106123c3 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
|
//############################################################################
// Bugs
//############################################################################
// $Id$
//############################################################################
// Bug 135
class Bug135Foo {
class Bar;
def foo = new Bar;
}
object Bug135Test {
def main(args: Array[String]): Unit = {
(new Bug135Foo).foo;
()
}
}
//############################################################################
// Bug 167
class Bug167Node(bar:Int) {
val foo = {
val bar = 1;
bar
}
}
object Bug167Test {
def main(args: Array[String]): Unit = {
if (new Bug167Node(0).foo != 1) System.out.println("bug 167");
}
}
//############################################################################
// Main
object Test {
def main(args: Array[String]): Unit = {
Bug135Test.main(args);
Bug167Test.main(args);
}
}
//############################################################################
|