diff options
author | Martin Odersky <odersky@gmail.com> | 2006-02-17 14:17:25 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-02-17 14:17:25 +0000 |
commit | 6b1d01b1b28d965586a54c1f4c1fe3adfc36545b (patch) | |
tree | 24829de1bfb3d9b4c7c10919edeb0dc263262479 /test/files/pos | |
parent | 22245600a5d413876dfbf110c0a6f80719f8168e (diff) | |
download | scala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.tar.gz scala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.tar.bz2 scala-6b1d01b1b28d965586a54c1f4c1fe3adfc36545b.zip |
Diffstat (limited to 'test/files/pos')
-rwxr-xr-x | test/files/pos/bug530.scala | 30 | ||||
-rw-r--r-- | test/files/pos/bug532.scala | 10 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/files/pos/bug530.scala b/test/files/pos/bug530.scala new file mode 100755 index 0000000000..6c887d6821 --- /dev/null +++ b/test/files/pos/bug530.scala @@ -0,0 +1,30 @@ +// scala.tools.nsc.Main.scala +package test; + +/** The main class for NSC, a compiler for the programming + * language Scala. + */ +object Test { +/* + def process(): AnyRef = { + class Compiler; + var compiler$module: Compiler = new Compiler; + def compiler() = compiler$module; + class Generator { + val c : Compiler = compiler() + } + var generator$module: Generator = new Generator; + def generator() = generator$module; + generator() + } +*/ + def process1(): AnyRef = { + object generator { + val c = compiler + } + object compiler; + generator + } + + +} diff --git a/test/files/pos/bug532.scala b/test/files/pos/bug532.scala new file mode 100644 index 0000000000..82da9c817f --- /dev/null +++ b/test/files/pos/bug532.scala @@ -0,0 +1,10 @@ +object Test extends Application { + import scala.reflect._; + def titi: Unit = { + var truc = 0 + val tata: TypedCode[()=>Unit] = () => { + truc = 6 + } + () + } +} |