summary refs log tree commit diff stats
path: root/tests/errmsgs/t19882.nim
blob: 1f2f95ab738cddfc7751ff47ca429f5c4a6373ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  errormsg: "cannot instantiate 'A[T, P]' inside of type definition: 'init'; Maybe generic arguments are missing?"
"""
type A[T,P] = object
  b:T
  c:P
proc init(): ref A =      
  new(result)
var a = init()