1 2 3 4 5 6 7 8 9 10 11 12 13
type Foo = object a, b: int s: string Bar {.borrow: `.`.} = distinct Foo var bb: ref Bar new bb bb.a = 90 bb.s = "abc"