Skip to content

Commit 655dc31

Browse files
committed
Reverted i11694 and i14823a
1 parent a555606 commit 655dc31

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/neg/i11694.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ def test1 = {
55
def f21: (Int => Int) | Null = x => x + 1
66
def f22: Null | (Int => Int) = x => x + 1
77

8-
def f31: (Int => Int) | (Int => Int) = x => x + 1
9-
def f32: (Int => Int) | (Int => Int) | Unit = x => x + 1
8+
def f31: (Int => Int) | (Int => Int) = x => x + 1 // error
9+
def f32: (Int => Int) | (Int => Int) | Unit = x => x + 1 // error
1010

1111
def f41: (Int => Int) & (Int => Int) = x => x + 1
1212
def f42: (Int => Int) & (Int => Int) & Any = x => x + 1

tests/neg/i14823a.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ object Foo {
1313
case class A[T]() extends Foo[T]
1414
}
1515

16-
val foo = summon[Mirror.Of[Box[Int] | Box[String]]] // error
17-
val bar = summon[MirrorK1.Of[[X] =>> Box[Int] | Box[String]]] // error
18-
def baz = summon[deriving.Mirror.Of[Foo[Int] | Foo[String]]] // error
16+
val foo = summon[Mirror.Of[Box[Int] | Box[Int]]] // error
17+
val bar = summon[MirrorK1.Of[[X] =>> Box[Int] | Box[Int]]] // error
18+
def baz = summon[deriving.Mirror.Of[Foo[String] | Foo[String]]] // error
1919

2020
def qux = summon[deriving.Mirror.Of[Option[Int] | Option[String]]] // error

0 commit comments

Comments
 (0)