t7141.nim 131 B

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