summary refs log tree commit diff stats
path: root/tests/generics/tbadgenericlambda.nim
blob: 9fac150c13515c85ff0ba8ac15764bc583af6cda (plain) (blame)
1
2
3
4
5
6
7
discard """
  errormsg: "nested proc can have generic parameters only when"
  line: 6
"""

let x = proc (x, y: auto): auto = x + y