summary refs log blame commit diff stats
path: root/tests/distinct/tborrowdot.nim
blob: 820ee3b71821e1c2aecf778fba56b3df9a867e50 (plain) (tree)
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"