mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-02 20:14:44 +00:00
fixes #2050
This commit is contained in:
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 = `+`
|
||||
Reference in New Issue
Block a user