type A = object of RootObj
test: proc(i: A): bool
var a: proc(i: A): bool
But not the following:
type A = object #of RootObj <-- COMMENTED
test: proc(i: A): bool
var a: proc(i: A): bool #However there are 0 problems if i comment this too
It fails with the following message:
c:\nim\test\nimcache\compiler_test.c:11:1: error: unknown type name
'TY92012'
TY92012 test;
^
Error: execution of an external program failed