summary refs log tree commit diff stats
path: root/tests/generics/t7141.nim
blob: 8a128d828a514e8657664b4effdbfb89d3d1517c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  action: "reject"
  line: 7
  errormsg: "cannot instantiate: \'T\'"
"""

proc foo[T](x: T) =
  discard

var fun = if true: foo else: foo