tarrowcrash.nim 488 B

123456789101112131415161718192021
  1. # issue #24179
  2. import sugar
  3. type
  4. Parser[T] = object
  5. proc eatWhile[T](p: Parser[T], predicate: T -> bool): seq[T] =
  6. return @[]
  7. proc skipWs(p: Parser[char]) =
  8. discard p.eatWhile((c: char) => c == 'a')
  9. #[!]#
  10. discard """
  11. $nimsuggest --tester $file
  12. >chk $1
  13. chk;;skUnknown;;;;Hint;;???;;0;;-1;;">> (toplevel): import(dirty): tests/tarrowcrash.nim [Processing]";;0
  14. chk;;skUnknown;;;;Hint;;$file;;11;;5;;"\'skipWs\' is declared but not used [XDeclaredButNotUsed]";;0
  15. """