summaryrefslogtreecommitdiff
path: root/test/files/run/t4072.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-01-07 14:42:58 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-01-07 14:42:58 +0000
commitced363bf5aa276356201815b22a015d30754f114 (patch)
tree196d632fccb76bf160fd688a2ec7269f314a3a81 /test/files/run/t4072.scala
parent4265833e121747f4fbbed96811f87125574720ee (diff)
downloadscala-ced363bf5aa276356201815b22a015d30754f114.tar.gz
scala-ced363bf5aa276356201815b22a015d30754f114.tar.bz2
scala-ced363bf5aa276356201815b22a015d30754f114.zip
Added test for #4072. no review
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
+ }
+}