From b7c17993c61d453c3069a14d66ada6fb7c3301c4 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 8 Mar 2010 13:46:13 +0000 Subject: new tests --- test/files/pos/t3037.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/files/pos/t3037.scala') diff --git a/test/files/pos/t3037.scala b/test/files/pos/t3037.scala index d613ebb28c..b71ffe0418 100644 --- a/test/files/pos/t3037.scala +++ b/test/files/pos/t3037.scala @@ -5,4 +5,9 @@ object A { case "a" => 1 case _ => "a" }).asInstanceOf[Object]) + def foo[T](x: T) = x + var x: Int = 1 + var y: Long = 1L + x = foo(x) + y = foo(y) } -- cgit v1.2.3