We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c97437 commit 63f87eeCopy full SHA for 63f87ee
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -347,7 +347,7 @@ object messages {
347
def closest: List[(Int, String)] = candidates
348
.toList
349
.map(n => (distance(n.show, missing), n))
350
- .filter((d, n) => d <= maxDist && d < missing.length & d < n.length)
+ .filter((d, n) => d <= maxDist && d < missing.length && d < n.length)
351
.sorted // sort by distance first, alphabetically second
352
353
val finalAddendum =
0 commit comments