diff options
author | metagn <metagngn@gmail.com> | 2024-09-27 07:23:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 06:23:29 +0200 |
commit | fd379c2f9410d8baa2e0dc7819e5bf3134aa7605 (patch) | |
tree | 543e951026dfca3f1732a79bddec1156e47fdd15 /tests/errmsgs | |
parent | 1bd5a4a99ed3fc6a77c3f8927d2d2292203af328 (diff) | |
download | Nim-fd379c2f9410d8baa2e0dc7819e5bf3134aa7605.tar.gz |
fix nimsuggest crash with arrow type sugar (#24185)
fixes #24179 The original fix made it so calls to `skError`/`skUnknown` (in this case `->`, for some reason `sugar` couldn't be imported) returned an error node, however this breaks tsug_accquote for some reason I don't understand (it even parses as `tsug_accquote.discard`) so I've just added a guard based on the stacktrace.
Diffstat (limited to 'tests/errmsgs')
-rw-r--r-- | tests/errmsgs/tundeclared_routine.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/errmsgs/tundeclared_routine.nim b/tests/errmsgs/tundeclared_routine.nim index 2f1320fff..41b1d35f4 100644 --- a/tests/errmsgs/tundeclared_routine.nim +++ b/tests/errmsgs/tundeclared_routine.nim @@ -9,7 +9,7 @@ tundeclared_routine.nim(29, 28) Error: invalid pragma: myPragma tundeclared_routine.nim(36, 13) Error: undeclared field: 'bar3' for type tundeclared_routine.Foo [type declared in tundeclared_routine.nim(33, 8)] found tundeclared_routine.bar3() [iterator declared in tundeclared_routine.nim(35, 12)] tundeclared_routine.nim(41, 13) Error: undeclared field: 'bar4' for type tundeclared_routine.Foo [type declared in tundeclared_routine.nim(39, 8)] -tundeclared_routine.nim(44, 15) Error: attempting to call routine: 'bad5' +tundeclared_routine.nim(44, 11) Error: undeclared identifier: 'bad5' ''' """ |