diff options
author | Martin Odersky <odersky@gmail.com> | 2006-05-18 16:24:52 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-05-18 16:24:52 +0000 |
commit | 63c4d302527a40f92750f2275222ae96b0e72472 (patch) | |
tree | 4e4c983f0dbe449ad0d03dc8e6fa86784e6af649 /test/files/resident/bug597 | |
parent | f60573811d50b020a2f81e0fb37447b763eb1dd5 (diff) | |
download | scala-63c4d302527a40f92750f2275222ae96b0e72472.tar.gz scala-63c4d302527a40f92750f2275222ae96b0e72472.tar.bz2 scala-63c4d302527a40f92750f2275222ae96b0e72472.zip |
Fixed bug 595,596,597
Diffstat (limited to 'test/files/resident/bug597')
-rw-r--r-- | test/files/resident/bug597/Main.scala | 10 | ||||
-rw-r--r-- | test/files/resident/bug597/Test.scala | 27 | ||||
-rw-r--r-- | test/files/resident/bug597/what-happened.txt | 10 |
3 files changed, 47 insertions, 0 deletions
diff --git a/test/files/resident/bug597/Main.scala b/test/files/resident/bug597/Main.scala new file mode 100644 index 0000000000..24d1327135 --- /dev/null +++ b/test/files/resident/bug597/Main.scala @@ -0,0 +1,10 @@ +package test; + +object Main { + def main(args : Array[String]) : Unit = { + new ExtC { + type A = Ax; + class Ax extends super.Ax; + } + } +} diff --git a/test/files/resident/bug597/Test.scala b/test/files/resident/bug597/Test.scala new file mode 100644 index 0000000000..2f63f46c3d --- /dev/null +++ b/test/files/resident/bug597/Test.scala @@ -0,0 +1,27 @@ +package test; + +abstract class Base { + type A <: Ax; + + abstract class Ax { + def a = null; + def string = "A"; + } +} +trait ExtB extends Base { + type A <: Ax; + trait Ax extends super.Ax { + def c = null; + override def string = super.string + "C"; + } +} + +trait ExtC extends /*ExtA with*/ ExtB { + type A <: Ax; + trait Ax extends super.Ax { + a + c + def d = null; + override def string = super.string + "D"; + } +} diff --git a/test/files/resident/bug597/what-happened.txt b/test/files/resident/bug597/what-happened.txt new file mode 100644 index 0000000000..52e67eda9c --- /dev/null +++ b/test/files/resident/bug597/what-happened.txt @@ -0,0 +1,10 @@ +Run in resident: + +bash-3.00$ ~/runtime-workspace/scala/dists/latest/bin/scalac -resident -d ../bin -sourcepath . + +nsc> test/Test.scala + +nsc> test/Main.scala +Exception in thread "main" java.lang.OutOfMemoryError: Java heap space + +I think there is a recursive function gone crazy somewhere. |