diff options
author | paltherr <paltherr@epfl.ch> | 2003-09-30 16:39:50 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-09-30 16:39:50 +0000 |
commit | 154770da0b6db84af6a0e819c4855511e35b7e5c (patch) | |
tree | bf347c8b326735afe7f399abec569fb719059384 /test/files/run/bugs.scala | |
parent | 26f6e93446e211a7c4bdc97871128d7877aecea4 (diff) | |
download | scala-154770da0b6db84af6a0e819c4855511e35b7e5c.tar.gz scala-154770da0b6db84af6a0e819c4855511e35b7e5c.tar.bz2 scala-154770da0b6db84af6a0e819c4855511e35b7e5c.zip |
- Added bugs.scala
Diffstat (limited to 'test/files/run/bugs.scala')
-rw-r--r-- | test/files/run/bugs.scala | 47 |
1 files changed, 47 insertions, 0 deletions
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); + } +} + +//############################################################################ |