diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-11-25 07:21:01 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2006-11-25 07:21:01 +0000 |
commit | 9eb3282d5e910fda7d20638b4aab587ae945670f (patch) | |
tree | a4e45f7e5070f9350b1828f2f7e53a0918f269bf /test/files/resident/bug597 | |
parent | 41d22eefca029c4aa5bf7192e82602baa714493a (diff) | |
download | scala-9eb3282d5e910fda7d20638b4aab587ae945670f.tar.gz scala-9eb3282d5e910fda7d20638b4aab587ae945670f.tar.bz2 scala-9eb3282d5e910fda7d20638b4aab587ae945670f.zip |
Blah, SVN is evil.
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 |
2 files changed, 37 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"; + } +} |