From c901a0675711a92ff714cfc909013a67a88c0ca3 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 4 Oct 2010 06:22:31 +0000 Subject: Another batch of busywork shuffling the content... Another batch of busywork shuffling the contents of pending around. Can almost see some daylight. No review. --- test/files/run/bug1042.scala | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/files/run/bug1042.scala (limited to 'test/files/run/bug1042.scala') diff --git a/test/files/run/bug1042.scala b/test/files/run/bug1042.scala new file mode 100644 index 0000000000..32eb49a7ec --- /dev/null +++ b/test/files/run/bug1042.scala @@ -0,0 +1,14 @@ +abstract class A { + override def toString(): String // crucial + + def toString(sb: StringBuilder): StringBuilder // crucial +} + +case class B() extends A { + // overloaded version is implemented, causing toString not to be implemented? + def toString(sb: StringBuilder): StringBuilder = error("") +} + +object Test extends Application { + Console.println(B) +} -- cgit v1.2.3