Skip to content

Commit

Permalink
Update compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Martres <[email protected]>
  • Loading branch information
odersky and smarter authored Jun 8, 2021
1 parent f0e63ae commit c2d5107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
finally useNecessaryEither = saved

/** Use avoidance to get rid of wildcards in constraint bounds if
* we are doing a neccessary comparison, or the mode is TypeVarsMissContext.
* we are doing a necessary comparison, or the mode is TypeVarsMissContext.
* The idea is that under either of these conditions we are not interested
* in creating a fresh type variable to replace the wildcard. I verified
* that several tests break if one or the other part of the disjunction is dropped.
Expand Down

0 comments on commit c2d5107

Please sign in to comment.