discard """ errormsg: "cannot instantiate B" line: 14 nimout: ''' got: but expected: ''' """ type B[T: string|float] = object child: ref B[T] var b: B[int]