summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2024-09-27 07:23:29 +0300
committerGitHub <noreply@github.com>2024-09-27 06:23:29 +0200
commitfd379c2f9410d8baa2e0dc7819e5bf3134aa7605 (patch)
tree543e951026dfca3f1732a79bddec1156e47fdd15 /tests/errmsgs
parent1bd5a4a99ed3fc6a77c3f8927d2d2292203af328 (diff)
downloadNim-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.nim2
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'
 '''
 """
 
vision' href='/danisanti/profani-tty/blame/CHANGELOG?id=214eac6e64938f302658d4841c6dcc7dc17181a9'>^
eeb0f71c ^
1ed9580c ^


841f9073 ^
1ed9580c ^
214eac6e ^

4257ecb1 ^
0269129d ^



9b797f3c ^
0269129d ^
6f1119d2 ^
f1875919 ^
89c7de77 ^
55b3e9d4 ^

89c7de77 ^
a3dccce2 ^
06882c01 ^

0269129d ^
a7de5933 ^


0bf9d324 ^
a7de5933 ^
0bf9d324 ^




a7de5933 ^
0bf9d324 ^





cd084c7e ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58