diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-12 17:12:29 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2011-04-12 17:12:29 +0000 |
commit | a3b106bf60ca020fad8eb502f598bff390a7b49b (patch) | |
tree | 43eccf4b233c21810c8f7703b6ef9000d23b39cb /test/files | |
parent | afd1e7d29329523dd90cc95cbbacdabed15f28b3 (diff) | |
download | scala-a3b106bf60ca020fad8eb502f598bff390a7b49b.tar.gz scala-a3b106bf60ca020fad8eb502f598bff390a7b49b.tar.bz2 scala-a3b106bf60ca020fad8eb502f598bff390a7b49b.zip |
closes #4426.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t4426.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t4426.scala b/test/files/run/t4426.scala new file mode 100644 index 0000000000..1cbd42da25 --- /dev/null +++ b/test/files/run/t4426.scala @@ -0,0 +1,24 @@ +import scala.tools.nsc._ + +object Test { + val x = { + val settings = new Settings() + settings.classpath.value = System.getProperty("java.class.path") + + object cc extends Global(settings) { + object dummy + + override def computePluginPhases() = { + super.computePluginPhases() + assert(dummy ne null, "Dummy not initialized") + } + } + new cc.Run + () + } + + def main(args: Array[String]): Unit = { + + } +} + |