Files
Nim/tests/distinct/tborrowdot.nim
2014-03-26 08:42:27 +01:00

14 lines
135 B
Nim

type
Foo = object
a, b: int
s: string
Bar {.borrow: `.`.} = distinct Foo
var bb: ref Bar
new bb
bb.a = 90
bb.s = "abc"