summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/files/run/t4072.flags1
-rw-r--r--test/files/run/t4072.scala13
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
+ }
+}