From 5508808ef7a5461730f71660785ca45056614d14 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 20 Sep 2006 14:27:12 +0000 Subject: fix^3: bug744 --- test/files/run/bug744.scala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/files/run/bug744.scala (limited to 'test/files/run/bug744.scala') diff --git a/test/files/run/bug744.scala b/test/files/run/bug744.scala new file mode 100644 index 0000000000..4895e9baa0 --- /dev/null +++ b/test/files/run/bug744.scala @@ -0,0 +1,20 @@ +trait Linked { + type File <: FileImpl; + trait FileImpl { + Console.println("Hello from linked"); + } +} +object Test { + class Test extends Linked { + trait FileImpl extends super.FileImpl { +// val x: int = 1 + } + class File extends FileImpl; + } + def main(args : Array[String]) : Unit = { + Console.println("BEGIN"); + val test = new Test; + val file = new test.File; + Console.println("END"); + } +} -- cgit v1.2.3