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.
2 parents 266ee03 + 506c2e2 commit 4a6ec60Copy full SHA for 4a6ec60
compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala
@@ -74,7 +74,7 @@ object DesugarEnums {
74
tparam.info.bounds.hi
75
else {
76
def problem =
77
- if (!tparam.isOneOf(VarianceFlags)) "is non variant"
+ if (!tparam.isOneOf(VarianceFlags)) "is invariant"
78
else "has bounds that depend on a type parameter in the same parameter list"
79
errorType(i"""cannot determine type argument for enum parent $enumClass,
80
|type parameter $tparam $problem""", ctx.source.atSpan(span))
0 commit comments