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
object self-assignment order-of-evaluation broken #9844
Same as #9684 but for objects...
proc f(v: int): int = v type X = object v: int var x = X(v: 42) x = X(v: f(x.v)) assert x.v == 42