diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-01-07 14:42:58 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-01-07 14:42:58 +0000 |
commit | ced363bf5aa276356201815b22a015d30754f114 (patch) | |
tree | 196d632fccb76bf160fd688a2ec7269f314a3a81 /test/files | |
parent | 4265833e121747f4fbbed96811f87125574720ee (diff) | |
download | scala-ced363bf5aa276356201815b22a015d30754f114.tar.gz scala-ced363bf5aa276356201815b22a015d30754f114.tar.bz2 scala-ced363bf5aa276356201815b22a015d30754f114.zip |
Added test for #4072. no review
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t4072.flags | 1 | ||||
-rw-r--r-- | test/files/run/t4072.scala | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t4072.flags b/test/files/run/t4072.flags new file mode 100644 index 0000000000..ae08446055 --- /dev/null +++ b/test/files/run/t4072.flags @@ -0,0 +1 @@ +-Xcheckinit
\ No newline at end of file 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 + } +} |