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