type A = object proc x(): A = var x = A() return x var obj = x() Run
type A = object proc x(): A = var x = A() return x var obj = x()