t7141.nim 150 B

1234567891011
  1. discard """
  2. action: "reject"
  3. line: 7
  4. errormsg: "cannot instantiate: \'T\'"
  5. """
  6. proc foo[T](x: T) =
  7. discard
  8. var fun = if true: foo else: foo