From ba18173c4ac655eb07eca036a81a7a8b9e76caa7 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 10 Oct 2016 19:00:38 +0200 Subject: [PATCH] Add test case --- tests/pos/orinf.scala | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/pos/orinf.scala diff --git a/tests/pos/orinf.scala b/tests/pos/orinf.scala new file mode 100644 index 000000000000..30b7fd2f6353 --- /dev/null +++ b/tests/pos/orinf.scala @@ -0,0 +1,6 @@ +object Test { + + def foo(lis: scala.collection.immutable.Set[Int] | scala.collection.immutable.Set[String]) = lis + foo(Set(1)) + foo(Set("")) +}