From 288faf969a5b72f0ce988cb2adeb662a51b49f73 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 28 Sep 2011 10:15:00 +0000 Subject: Added Paul's failing scenario to test file. --- test/disabled/run/code.scala | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/disabled/run/code.scala b/test/disabled/run/code.scala index 1a9c97177d..763a481e5e 100644 --- a/test/disabled/run/code.scala +++ b/test/disabled/run/code.scala @@ -10,7 +10,7 @@ object Test extends App { } CodeTest(foo(List(2)), args) CodeTest({() => val e = Element("someName"); e}, args) - CodeTest({() => val e = InnerElement("someName"); e}, args) // (does not work yet) +// CodeTest({() => val e = InnerElement("someName"); e}, args) // (does not work yet) def titi() = { var truc = 0 CodeTest(() => { @@ -25,6 +25,17 @@ object Test extends App { } titi() tata() + new baz.A(args) +} + +package baz { + + case class BazElement(name: String) { } + + class A(args: Array[String]) { + CodeTest(() => new baz.BazElement("someName"), args) + } + } -- cgit v1.2.3