From ced363bf5aa276356201815b22a015d30754f114 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Fri, 7 Jan 2011 14:42:58 +0000 Subject: Added test for #4072. no review --- test/files/run/t4072.scala | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/files/run/t4072.scala (limited to 'test/files/run/t4072.scala') diff --git a/test/files/run/t4072.scala b/test/files/run/t4072.scala new file mode 100644 index 0000000000..371b8ccd5f --- /dev/null +++ b/test/files/run/t4072.scala @@ -0,0 +1,13 @@ +import scala.tools.nsc._ + +object Test { + class DryRun { + val compiler = new Global(new Settings()) { + lazy val test1 = new AnyRef + } + } + + def main(args: Array[String]) { + new DryRun().compiler.test1 + } +} -- cgit v1.2.3