diff options
Diffstat (limited to 'test/files')
-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()) } |