summary refs log tree commit diff stats
path: root/tests/objects/t3734.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/objects/t3734.nim')
-rw-r--r--tests/objects/t3734.nim17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/objects/t3734.nim b/tests/objects/t3734.nim
new file mode 100644
index 000000000..cebef6081
--- /dev/null
+++ b/tests/objects/t3734.nim
@@ -0,0 +1,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)