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.
1 parent 25f3858 commit 9eee92fCopy full SHA for 9eee92f
src/dotty/tools/dotc/typer/VarianceChecker.scala
@@ -84,7 +84,7 @@ class VarianceChecker()(implicit ctx: Context) {
84
case tp: TypeRef =>
85
val sym = tp.symbol
86
if (sym.variance != 0 && base.isContainedIn(sym.owner)) checkVarianceOfSymbol(sym)
87
- else if (sym.isAliasType) this(status, sym.info)
+ else if (sym.isAliasType) this(status, sym.info.bounds.hi)
88
else foldOver(status, tp)
89
case tp: MethodType =>
90
this(status, tp.resultType) // params will be checked in their TypeDef nodes.
0 commit comments