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 825db1b commit da4b5e8Copy full SHA for da4b5e8
compiler/src/dotty/tools/dotc/typer/VarianceChecker.scala
@@ -95,6 +95,8 @@ class VarianceChecker()(implicit ctx: Context) {
95
this(status, tp.resultType) // params will be checked in their TypeDef or ValDef nodes.
96
case AnnotatedType(_, annot) if annot.symbol == defn.UncheckedVarianceAnnot =>
97
status
98
+ case tp: MatchType =>
99
+ apply(status, tp.bound)
100
case tp: ClassInfo =>
101
foldOver(status, tp.classParents)
102
case _ =>
0 commit comments