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 f31a876 commit 625e4a9Copy full SHA for 625e4a9
compiler/src/dotty/tools/dotc/typer/VarianceChecker.scala
@@ -48,6 +48,8 @@ object VarianceChecker {
48
case tref: TypeParamRef if tref.binder `eq` tl =>
49
val v = tl.typeParams(tref.paramNum).paramVariance
50
varianceConforms(variance, v) || { error(tref); false }
51
+ case AnnotatedType(_, annot) if annot.symbol == defn.UncheckedVarianceAnnot =>
52
+ x
53
case _ =>
54
foldOver(x, t)
55
}
0 commit comments