File tree 1 file changed +7
-0
lines changed
compiler/test/dotty/tools/vulpix
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -658,13 +658,20 @@ trait ParallelTesting extends RunnerOrchestration { self =>
658
658
if (errors > 0 )
659
659
errorMap.put(s " ${file.getPath}: ${lineNbr}" , errors)
660
660
661
+
661
662
val noposErrors = line.sliding(" // nopos-error" .length).count(_.mkString == " // nopos-error" )
662
663
if (noposErrors > 0 ) {
663
664
val nopos = errorMap.get(" nopos" )
664
665
val existing : Integer = if (nopos eq null ) 0 else nopos
665
666
errorMap.put(" nopos" , noposErrors + existing)
666
667
}
667
668
669
+ val possibleTypos = List (" //error" -> " // error" , " //nopos-error" -> " // nopos-error" )
670
+ for ((possibleTypo, expected) <- possibleTypos) {
671
+ if (line.contains(possibleTypo))
672
+ echo(s " Warning: Possible typo in error tag in file ${file.getCanonicalPath}: $lineNbr: found ` $possibleTypo` but expected ` $expected` " )
673
+ }
674
+
668
675
expectedErrors += noposErrors + errors
669
676
}
670
677
}
You can’t perform that action at this time.
0 commit comments