aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/intersection.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/intersection.scala')
-rw-r--r--tests/pos/intersection.scala4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/pos/intersection.scala b/tests/pos/intersection.scala
index 2b9f6c0b7..a4c19b5af 100644
--- a/tests/pos/intersection.scala
+++ b/tests/pos/intersection.scala
@@ -1,3 +1,4 @@
+import dotty.language.keepUnions
object intersection {
class A
@@ -11,9 +12,6 @@ object intersection {
val a: A & B => Unit = z
val b: (A => Unit) | (B => Unit) = z
-
-
-
type needsA = A => Nothing
type needsB = B => Nothing
}