From 25c0398b6f07df2449652e66cef8b6a6d3d4c7ce Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 1 Oct 2016 21:51:34 +0200 Subject: Adapt tests --- tests/pos/union.scala | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/pos/union.scala (limited to 'tests/pos/union.scala') diff --git a/tests/pos/union.scala b/tests/pos/union.scala new file mode 100644 index 000000000..8b20a8458 --- /dev/null +++ b/tests/pos/union.scala @@ -0,0 +1,11 @@ +object Test { + + class A + class B extends A + class C extends A + class D extends A + + val b = true + val x = if (b) new B else new C + val y: B | C = x +} -- cgit v1.2.3