From bd46c931f0fba3a9bee8816a7b2fb77ed33bc361 Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Wed, 8 Oct 2008 15:32:52 +0000 Subject: Fix for #547 and #1404. --- test/files/run/interpreter.check | 9 +++++++++ test/files/run/interpreter.scala | 6 ++++++ 2 files changed, 15 insertions(+) (limited to 'test/files') diff --git a/test/files/run/interpreter.check b/test/files/run/interpreter.check index ef8de4dc97..64eeca14ba 100644 --- a/test/files/run/interpreter.check +++ b/test/files/run/interpreter.check @@ -32,6 +32,15 @@ y: Int = 3 scala> hello +scala> +scala> +scala> atom: scala.xml.Atom[Unit] = () + +scala> +scala> defined class S + +scala> fish: S = fish + scala> scala> scala> defined class Foo diff --git a/test/files/run/interpreter.scala b/test/files/run/interpreter.scala index 13abc565f7..1ebe72ed2a 100644 --- a/test/files/run/interpreter.scala +++ b/test/files/run/interpreter.scala @@ -22,6 +22,12 @@ trait PointlessTrait val (x,y) = (2,3) println("hello") +// ambiguous toString problem from #547 +val atom = new scala.xml.Atom() +// overriding toString problem from #1404 +class S(override val toString : String) +val fish = new S("fish") + // implicit conversions case class Foo(n: Int) case class Bar(n: Int) -- cgit v1.2.3