From b6241963e61f1eaef1a53627197cc13afa0db234 Mon Sep 17 00:00:00 2001 From: Erik Osheim Date: Mon, 14 May 2012 01:01:31 -0400 Subject: Added test case for commit f7d5f45 (re SI-5552) --- test/files/run/t5552.check | 2 ++ test/files/run/t5552.scala | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/files/run/t5552.check create mode 100644 test/files/run/t5552.scala (limited to 'test/files') diff --git a/test/files/run/t5552.check b/test/files/run/t5552.check new file mode 100644 index 0000000000..a19a60840e --- /dev/null +++ b/test/files/run/t5552.check @@ -0,0 +1,2 @@ +(3,3) +(3.0,3.0) diff --git a/test/files/run/t5552.scala b/test/files/run/t5552.scala new file mode 100644 index 0000000000..afb8a1f0be --- /dev/null +++ b/test/files/run/t5552.scala @@ -0,0 +1,10 @@ +class C[@specialized(Int) A](a:A) { + lazy val b = (a, a) + def c = b +} +object Test { + def main(args:Array[String]) { + println(new C(3).c) + println(new C(3.0).c) + } +} -- cgit v1.2.3