From 154770da0b6db84af6a0e819c4855511e35b7e5c Mon Sep 17 00:00:00 2001 From: paltherr Date: Tue, 30 Sep 2003 16:39:50 +0000 Subject: - Added bugs.scala --- test/files/run/bugs.scala | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test/files/run/bugs.scala (limited to 'test') diff --git a/test/files/run/bugs.scala b/test/files/run/bugs.scala new file mode 100644 index 0000000000..57b9ff8a08 --- /dev/null +++ b/test/files/run/bugs.scala @@ -0,0 +1,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); + } +} + +//############################################################################ -- cgit v1.2.3