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 14ce6c8 commit 6b64c9aCopy full SHA for 6b64c9a
src/dotty/tools/dotc/typer/Variances.scala
@@ -71,6 +71,7 @@ object Variances {
71
case TermRef(pre, sym) =>
72
varianceInType(pre)(tparam)
73
case TypeRef(pre, sym) =>
74
+ /* @odersky sym is a typeName here, comparison is always false */
75
if (sym == tparam) Covariant else varianceInType(pre)(tparam)
76
case tp @ TypeBounds(lo, hi) =>
77
if (lo eq hi) compose(varianceInType(hi)(tparam), tp.variance)
0 commit comments