summary refs log blame commit diff stats
path: root/tests/fields/timplicitfieldswithpartial.nim
blob: 996912a1ad1ba6918bc97c9d15f9c2b68091bf7c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
           
                                          











                                      
                



          
discard """
  output: '''(foo: 38, other: string here)
43'''
"""

type
  Base = ref object of RootObj
  Foo {.partial.} = ref object of Base

proc my(f: Foo) =
  #var f.next = f
  let f.foo = 38
  let f.other = "string here"
  echo f[]
  echo f.foo + 5

var g: Foo
new(g)
my(g)