We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ded42af commit a39644dCopy full SHA for a39644d
tests/neg/i2771.scala
@@ -6,15 +6,19 @@ trait D { type M >: B }
6
object Test {
7
def test(x: C with D): Unit = {
8
def f(y: x.M)(z: y.L[y.L]) = z // error: y.L takes type parameters
9
- f(new B { type L[F[_]] = F[F] })(1)
+ f(new B { type L[F[_]] = F[F] })(1) // error: F takes type parameters (follow-on-error)
10
}
11
12
+ type LB[F[_]]
13
+
14
+ type LL[F[_]] <: LB[F] // ok
15
16
def foo[X[_] <: Any]() = ()
17
foo[Int]() // an error would be raised later, during PostTyper.
18
19
def bar[X, Y]() = ()
20
bar[List, Int]() // error: List takes type parameters
21
- bar[Y = List, X = Int] // error: List takes type parameters
22
+ bar[Y = List, X = Int]() // error: List takes type parameters
23
24
0 commit comments