tnoinst.nim 253 B

1234567891011121314151617
  1. discard """
  2. errormsg: "instantiate 'notConcrete' explicitly"
  3. line: 12
  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]()