summaryrefslogtreecommitdiff
path: root/test/files/run/t4072.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4072.scala')
-rw-r--r--test/files/run/t4072.scala13
1 files changed, 13 insertions, 0 deletions
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
+ }
+}