File tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -140,10 +140,11 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
140
140
finally useNecessaryEither = saved
141
141
142
142
/** Use avoidance to get rid of wildcards in constraint bounds if
143
- * we are doing a neccessary comparison, or the mode is TypeVarsMissContext.
143
+ * we are doing a necessary comparison, or the mode is TypeVarsMissContext.
144
144
* The idea is that under either of these conditions we are not interested
145
145
* in creating a fresh type variable to replace the wildcard. I verified
146
146
* that several tests break if one or the other part of the disjunction is dropped.
147
+ * (for instance, i12677.scala demands `useNecessaryEither` in the condition)
147
148
*/
148
149
override protected def approximateWildcards : Boolean =
149
150
useNecessaryEither || ctx.mode.is(Mode .TypevarsMissContext )
You can’t perform that action at this time.
0 commit comments