Added test for #4072. no review

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23922 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
plocinic 2011-01-07 14:42:58 +00:00
parent 9d39f363ed
commit 5ff5d72a4f
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
-Xcheckinit

View File

@ -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
}
}