From 5dbb616610b616bff7ec8bb9b78a6f8a59203d7d Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 27 Jul 2011 21:00:20 +0000 Subject: Test case closes SI-4172 - I think the output i... Test case closes SI-4172 - I think the output is right anyway - review by rytz. --- test/files/run/bug4172.check | 11 +++++++++++ test/files/run/bug4172.scala | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 test/files/run/bug4172.check create mode 100644 test/files/run/bug4172.scala (limited to 'test') diff --git a/test/files/run/bug4172.check b/test/files/run/bug4172.check new file mode 100644 index 0000000000..4bb963baa9 --- /dev/null +++ b/test/files/run/bug4172.check @@ -0,0 +1,11 @@ +Type in expressions to have them evaluated. +Type :help for more information. + +scala> + +scala> val c = { class C { override def toString = "C" }; ((new C, new C { def f = 2 })) } +c: (C, C{def f: Int}) forSome { type C <: java.lang.Object with ScalaObject } = (C,C) + +scala> + +scala> diff --git a/test/files/run/bug4172.scala b/test/files/run/bug4172.scala new file mode 100644 index 0000000000..3a08f2fecd --- /dev/null +++ b/test/files/run/bug4172.scala @@ -0,0 +1,7 @@ +import scala.tools.partest.ReplTest + +object Test extends ReplTest { + def code = """ + val c = { class C { override def toString = "C" }; ((new C, new C { def f = 2 })) } + """ +} -- cgit v1.2.3