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.
2 parents b34ea5d + 400ab3c commit d6f4cc3Copy full SHA for d6f4cc3
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3556,6 +3556,8 @@ object Types {
3556
else lo.applyIfParameterized(args)
3557
case _ => NoType
3558
}
3559
+ case tycon: AppliedType =>
3560
+ tycon.lowerBound.applyIfParameterized(args)
3561
case _ =>
3562
NoType
3563
tests/pos/i6451.scala
@@ -0,0 +1,10 @@
1
+object Test {
2
+
3
+ type YZ = [Y[_]] => [Z[_]] => [T] => Y[Z[T]]
4
5
+ val r1: List[List[Int]] = ???
6
+ def r2(): List[List[Int]] = ???
7
8
+ val l1: YZ[List][List][Int] = r1
9
+ val l2: YZ[List][List][Int] = r2()
10
+}
0 commit comments