tnoinst.nim 254 B

123456789101112131415161718
  1. discard """
  2. line: 12
  3. errormsg: "instantiate 'notConcrete' explicitly"
  4. disabled: "true"
  5. """
  6. proc wrap[T]() =
  7. proc notConcrete[T](x, y: int): int =
  8. var dummy: T
  9. result = x - y
  10. var x: proc (x, y: T): int
  11. x = notConcrete
  12. wrap[int]()