fixes #2050
This commit is contained in:
parent
45001632ce
commit
cfea779e23
2 changed files with 17 additions and 5 deletions
8
tests/errmsgs/tcannot_capture_builtin.nim
Normal file
8
tests/errmsgs/tcannot_capture_builtin.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
discard """
|
||||
errormsg: "'+' cannot be passed to a procvar"
|
||||
line: 8
|
||||
"""
|
||||
|
||||
# bug #2050
|
||||
|
||||
let v: proc (a, b: int): int = `+`
|
||||
Loading…
Add table
Add a link
Reference in a new issue