Skip to content

Commit c2d5107

Browse files
oderskysmarter
andauthored
Update compiler/src/dotty/tools/dotc/core/TypeComparer.scala
Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
1 parent f0e63ae commit c2d5107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
140140
finally useNecessaryEither = saved
141141

142142
/** 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.
144144
* The idea is that under either of these conditions we are not interested
145145
* in creating a fresh type variable to replace the wildcard. I verified
146146
* that several tests break if one or the other part of the disjunction is dropped.

0 commit comments

Comments
 (0)