Skip to content

Commit 6b64c9a

Browse files
committed
Seems to be a bug ping @odesrky
1 parent 14ce6c8 commit 6b64c9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dotty/tools/dotc/typer/Variances.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ object Variances {
7171
case TermRef(pre, sym) =>
7272
varianceInType(pre)(tparam)
7373
case TypeRef(pre, sym) =>
74+
/* @odersky sym is a typeName here, comparison is always false */
7475
if (sym == tparam) Covariant else varianceInType(pre)(tparam)
7576
case tp @ TypeBounds(lo, hi) =>
7677
if (lo eq hi) compose(varianceInType(hi)(tparam), tp.variance)

0 commit comments

Comments
 (0)