summary refs log tree commit diff stats
path: root/tests/errmsgs/tcannot_capture_builtin.nim
blob: 3b8aae2417a84990bb52907aee7217eac5226843 (plain) (blame)
1
2
3
4
5
6
7
8
discard """
errormsg: "'+' cannot be passed to a procvar"
line: 8
"""

# bug #2050

let v: proc (a, b: int): int = `+`