tspellsuggest2.nim 753 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. discard """
  2. matrix: "--spellsuggest:12 --hints:off"
  3. action: "reject"
  4. nimout: '''
  5. tspellsuggest2.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. '''
  20. """
  21. # tests `--spellsuggest`
  22. # line 30
  23. import ./mspellsuggest
  24. var fooBar1 = 0
  25. let fooBar2 = 0
  26. const fooBar3 = 0
  27. proc fooBar4() = discard
  28. template fooBar5() = discard
  29. macro fooBar6() = discard
  30. proc main =
  31. var fooBar7 = 0
  32. block:
  33. var fooBar8 = 0
  34. const fooBarBaz = 0
  35. let x = fooBar