Skip to content

Commit a39644d

Browse files
committed
Fix test
1 parent ded42af commit a39644d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/neg/i2771.scala

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ trait D { type M >: B }
66
object Test {
77
def test(x: C with D): Unit = {
88
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)
9+
f(new B { type L[F[_]] = F[F] })(1) // error: F takes type parameters (follow-on-error)
1010
}
1111

12+
type LB[F[_]]
13+
14+
type LL[F[_]] <: LB[F] // ok
15+
1216
def foo[X[_] <: Any]() = ()
1317
foo[Int]() // an error would be raised later, during PostTyper.
1418

1519
def bar[X, Y]() = ()
1620
bar[List, Int]() // error: List takes type parameters
1721

18-
bar[Y = List, X = Int] // error: List takes type parameters
22+
bar[Y = List, X = Int]() // error: List takes type parameters
1923

2024
}

0 commit comments

Comments
 (0)