File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3060,7 +3060,7 @@ object Types {
30603060 def isTypeParam (implicit ctx : Context ) = tl.paramNames.head.isTypeName
30613061 def paramName (implicit ctx : Context ) = tl.paramNames(n)
30623062 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)
30643064 def paramInfoOrCompleter (implicit ctx : Context ): Type = paramInfo
30653065 def paramVariance (implicit ctx : Context ): Int = tl.paramNames(n).variance
30663066 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