We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a91353 commit 35f3f9cCopy full SHA for 35f3f9c
tests/neg/i11694.scala
@@ -5,8 +5,8 @@ def test1 = {
5
def f21: (Int => Int) | Null = x => x + 1
6
def f22: Null | (Int => Int) = x => x + 1
7
8
- def f31: (Int => Int) | (Int => Int) = x => x + 1
9
- def f32: (Int => Int) | (Int => Int) | Unit = x => x + 1
+ def f31: (Int => Int) | (Int => Int) = x => x + 1 // error
+ def f32: (Int => Int) | (Int => Int) | Unit = x => x + 1 // error
10
11
def f41: (Int => Int) & (Int => Int) = x => x + 1
12
def f42: (Int => Int) & (Int => Int) & Any = x => x + 1
0 commit comments