mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
* Track seen module graphs so symbols from the same module aren't repeated Add test case * Track symbols instead of modules * Don't show duplicate symbols in spell checker Removes the declared location from the message. Since we don't show duplicates anymore it would be a bit misleading if we only show the location for the first declaration of the symbol
22 lines
455 B
Nim
22 lines
455 B
Nim
discard """
|
|
# pending bug #16521 (bug 12) use `matrix`
|
|
cmd: "nim c --spellsuggest:4 --hints:off $file"
|
|
action: "reject"
|
|
nimout: '''
|
|
tspellsuggest3.nim(21, 1) Error: undeclared identifier: 'fooBar'
|
|
candidates (edit distance, scope distance); see '--spellSuggest':
|
|
(1, 2): 'FooBar'
|
|
(1, 2): 'fooBar4'
|
|
(1, 2): 'fooBar9'
|
|
(1, 2): 'fooCar'
|
|
'''
|
|
"""
|
|
|
|
import ./mspellsuggest
|
|
import ./mspellsuggest
|
|
import ./mspellsuggest
|
|
import ./mspellsuggest
|
|
|
|
|
|
fooBar
|