File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ def test1 = {
5
5
def f21 : (Int => Int ) | Null = x => x + 1
6
6
def f22 : Null | (Int => Int ) = x => x + 1
7
7
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
10
10
11
11
def f41 : (Int => Int ) & (Int => Int ) = x => x + 1
12
12
def f42 : (Int => Int ) & (Int => Int ) & Any = x => x + 1
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ object Foo {
13
13
case class A [T ]() extends Foo [T ]
14
14
}
15
15
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
19
19
20
20
def qux = summon[deriving.Mirror .Of [Option [Int ] | Option [String ]]] // error
You can’t perform that action at this time.
0 commit comments