File tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3060,7 +3060,7 @@ object Types {
3060
3060
def isTypeParam (implicit ctx : Context ) = tl.paramNames.head.isTypeName
3061
3061
def paramName (implicit ctx : Context ) = tl.paramNames(n)
3062
3062
def paramInfo (implicit ctx : Context ) = tl.paramInfos(n)
3063
- def paramInfoAsSeenFrom (pre : Type )(implicit ctx : Context ) = paramInfo
3063
+ def paramInfoAsSeenFrom (pre : Type )(implicit ctx : Context ) = paramInfo.asSeenFrom(pre, pre.classSymbol)
3064
3064
def paramInfoOrCompleter (implicit ctx : Context ): Type = paramInfo
3065
3065
def paramVariance (implicit ctx : Context ): Int = tl.paramNames(n).variance
3066
3066
def paramRef (implicit ctx : Context ): Type = tl.paramRefs(n)
Original file line number Diff line number Diff line change
1
+ class Foo {
2
+ class A
3
+
4
+ type Bla [X <: A ] = X
5
+ }
6
+
7
+ class Bar extends Foo {
8
+ val y : Bla [A ] = ???
9
+ }
You can’t perform that action at this time.
0 commit comments