* close #10734 add testcase * fix * fix
This commit is contained in:
parent
cf6dd57efe
commit
736b0d13c0
1 changed files with 19 additions and 0 deletions
19
tests/errmsgs/t10734.nim
Normal file
19
tests/errmsgs/t10734.nim
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
discard """
|
||||
cmd: "nim check $file"
|
||||
errormsg: ""
|
||||
nimout: '''
|
||||
t10734.nim(18, 1) Error: invalid indentation
|
||||
t10734.nim(18, 6) Error: invalid indentation
|
||||
t10734.nim(19, 7) Error: expression expected, but found '[EOF]'
|
||||
t10734.nim(17, 5) Error: 'proc' is not a concrete type; for a callback without parameters use 'proc()'
|
||||
t10734.nim(18, 6) Error: undeclared identifier: 'p'
|
||||
t10734.nim(18, 6) Error: 'p' cannot be assigned to
|
||||
t10734.nim(16, 3) Hint: 'T' is declared but not used [XDeclaredButNotUsed]
|
||||
'''
|
||||
"""
|
||||
|
||||
type
|
||||
T = object
|
||||
a:
|
||||
proc p =
|
||||
case
|
||||
Loading…
Add table
Add a link
Reference in a new issue