Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
`new` output can be assigned to an unowned ref #11073
type Obj = ref object proc newObj(): Obj = result = new Obj #result = Obj() <-- this also compiles let o = newObj()
Error out due to the fact that the unowned ref lasted longer than the owned ref.