tspellsuggest.nim 809 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. discard """
  2. matrix: "--spellsuggest:15 --hints:off"
  3. action: "reject"
  4. nimout: '''
  5. tspellsuggest.nim(45, 13) Error: undeclared identifier: 'fooBar'
  6. candidates (edit distance, scope distance); see '--spellSuggest':
  7. (1, 0): 'fooBar8'
  8. (1, 1): 'fooBar7'
  9. (1, 3): 'fooBar1'
  10. (1, 3): 'fooBar2'
  11. (1, 3): 'fooBar3'
  12. (1, 3): 'fooBar4'
  13. (1, 3): 'fooBar5'
  14. (1, 3): 'fooBar6'
  15. (1, 5): 'FooBar'
  16. (1, 5): 'fooBar4'
  17. (1, 5): 'fooBar9'
  18. (1, 5): 'fooCar'
  19. (2, 5): 'FooCar'
  20. (2, 5): 'GooBa'
  21. (3, 0): 'fooBarBaz'
  22. '''
  23. """
  24. # tests `--spellsuggest:num`
  25. # line 30
  26. import ./mspellsuggest
  27. var fooBar1 = 0
  28. let fooBar2 = 0
  29. const fooBar3 = 0
  30. proc fooBar4() = discard
  31. template fooBar5() = discard
  32. macro fooBar6() = discard
  33. proc main =
  34. var fooBar7 = 0
  35. block:
  36. var fooBar8 = 0
  37. const fooBarBaz = 0
  38. let x = fooBar