summary refs log tree commit diff stats
path: root/tests/showoff/thello2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/showoff/thello2.nim')
-rw-r--r--tests/showoff/thello2.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/showoff/thello2.nim b/tests/showoff/thello2.nim
new file mode 100644
index 000000000..d2e2f6227
--- /dev/null
+++ b/tests/showoff/thello2.nim
@@ -0,0 +1,11 @@
+discard """
+  output: '''(a: 3, b: 4, s: abc)'''
+"""
+
+type
+  MyObject = object
+        a, b: int
+        s: string
+
+let obj = MyObject(a: 3, b: 4, s: "abc")
+echo obj