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:
parent
9d39f363ed
commit
5ff5d72a4f
|
@ -0,0 +1 @@
|
|||
-Xcheckinit
|
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue