summary refs log blame commit diff stats
path: root/tests/objects/t3734.nim
blob: cebef60811bdf69e9d824d9a38bfe39029b27dd2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                    
discard """
output: "i0"
"""

type
  Application = object
      config: void
      i: int
      f: void

proc printFields(rec: Application) =
  for k, v in fieldPairs(rec):
    echo k, v

var app: Application

printFields(app)