File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1009,8 +1009,8 @@ class Namer { typer: Typer =>
1009
1009
case tp : TypeBounds =>
1010
1010
def recur (tp : Type ): Type = tp match
1011
1011
case tp : HKTypeLambda if ! tp.isDeclaredVarianceLambda =>
1012
- tp.withVariances(tp.paramNames.map(alwaysInvariant))
1013
- .derivedLambdaType(resType = recur(tp .resType))
1012
+ val tp1 = tp.withVariances(tp.paramNames.map(alwaysInvariant))
1013
+ tp1 .derivedLambdaType(resType = recur(tp1 .resType))
1014
1014
case tp => tp
1015
1015
tp.derivedTypeBounds(tp.lo, recur(tp.hi))
1016
1016
case _ =>
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ class Test {
10
10
11
11
val y : A [Int ][Boolean ] = x
12
12
13
- def f [X <: T [Int ]] = ???
13
+ def f [X <: [ Y ] =>> T [Int ][ Y ]] = ???
14
14
15
15
f[A [Int ]]
16
16
17
- def g [X <: T ] = ???
17
+ def g [X <: [ Y ] =>> [ Z ] =>> T [ Y ][ Z ] ] = ???
18
18
19
19
g[A ]
20
20
You can’t perform that action at this time.
0 commit comments