From f9da023c4e7d57e38ba0041e0ee31b9ee46ec4a9 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 29 Nov 2006 13:11:31 +0000 Subject: renamed directory 'resident' to match '--res' o... renamed directory 'resident' to match '--res' option --- test/files/res/bug597/Main.scala | 10 ++++++++++ test/files/res/bug597/Test.scala | 27 +++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/files/res/bug597/Main.scala create mode 100644 test/files/res/bug597/Test.scala (limited to 'test/files/res/bug597') diff --git a/test/files/res/bug597/Main.scala b/test/files/res/bug597/Main.scala new file mode 100644 index 0000000000..24d1327135 --- /dev/null +++ b/test/files/res/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/res/bug597/Test.scala b/test/files/res/bug597/Test.scala new file mode 100644 index 0000000000..2f63f46c3d --- /dev/null +++ b/test/files/res/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"; + } +} -- cgit v1.2.3