t5167_1.nim 258 B

123456789101112131415161718
  1. discard """
  2. errormsg: "'bar' doesn't have a concrete type, due to unspecified generic parameters."
  3. line: 16
  4. """
  5. proc foo[T]() =
  6. var y1 = foo[string]
  7. var y2 = foo[T]
  8. proc bar[T]() =
  9. let x = 0
  10. let good1 = foo[int]
  11. let good2 = bar[int]
  12. let err = bar