diff options
author | Martin Odersky <odersky@gmail.com> | 2011-04-11 08:53:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-04-11 08:53:51 +0000 |
commit | adb112fec4b26a4bd930803c0b8b44f543a79863 (patch) | |
tree | ab649ac35c5bbc3398ad66e9b1401790ca87fa24 /test | |
parent | 886e0a6a1c5623337e0362bd37fc4a2d82887675 (diff) | |
download | scala-adb112fec4b26a4bd930803c0b8b44f543a79863.tar.gz scala-adb112fec4b26a4bd930803c0b8b44f543a79863.tar.bz2 scala-adb112fec4b26a4bd930803c0b8b44f543a79863.zip |
Closes #4380. No review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t4396.check | 1 | ||||
-rw-r--r-- | test/files/run/t4396.scala | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t4396.check b/test/files/run/t4396.check index b0b4014430..58f4fc5138 100644 --- a/test/files/run/t4396.check +++ b/test/files/run/t4396.check @@ -2,3 +2,4 @@ hallo constructor out:22 bye +foo diff --git a/test/files/run/t4396.scala b/test/files/run/t4396.scala index 9911f323a5..d67eaa378e 100644 --- a/test/files/run/t4396.scala +++ b/test/files/run/t4396.scala @@ -1,3 +1,4 @@ +// #43896 trait M extends DelayedInit { def delayedInit(body : => Unit) { println("hallo") @@ -13,6 +14,22 @@ class C(init : Int) extends M { println("out:"+x) } +// #4380 +object Main { + def main(argv: Array[String]) { + class Bip { + class Foo { override def toString() = "foo" } + object Main extends App { + val cbn = new Foo() + } + Main.main(Array()) + println(Main.cbn) + } + new Bip + } +} + object Test extends App { new C(22) + Main.main(Array()) } |