t19882.nim 221 B

1234567891011
  1. discard """
  2. errormsg: "cannot instantiate 'A[T, P]' inside of type definition: 'init'; Maybe generic arguments are missing?"
  3. """
  4. type A[T,P] = object
  5. b:T
  6. c:P
  7. proc init(): ref A =
  8. new(result)
  9. var a = init()