diff options
Diffstat (limited to 'test/files/run/bug4172.scala')
-rw-r--r-- | test/files/run/bug4172.scala | 7 |
1 files changed, 7 insertions, 0 deletions
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 })) } + """ +} |