Skip to content

Commit 736b0d1

Browse files
authored
close #10734 add testcase (#16692)
* close #10734 add testcase * fix * fix
1 parent cf6dd57 commit 736b0d1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/errmsgs/t10734.nim

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
discard """
2+
cmd: "nim check $file"
3+
errormsg: ""
4+
nimout: '''
5+
t10734.nim(18, 1) Error: invalid indentation
6+
t10734.nim(18, 6) Error: invalid indentation
7+
t10734.nim(19, 7) Error: expression expected, but found '[EOF]'
8+
t10734.nim(17, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
9+
t10734.nim(18, 6) Error: undeclared identifier: 'p'
10+
t10734.nim(18, 6) Error: 'p' cannot be assigned to
11+
t10734.nim(16, 3) Hint: 'T' is declared but not used [XDeclaredButNotUsed]
12+
'''
13+
"""
14+
15+
type
16+
T = object
17+
a:
18+
proc p =
19+
case

0 commit comments

Comments
 (0)