summary refs log tree commit diff stats
path: root/tests/run
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-19 13:24:42 +0200
committerAraq <rumpf_a@web.de>2012-10-19 13:24:42 +0200
commitb20663ce192ff8012b2d73113a5d506b8526ec62 (patch)
tree6fa10af32f8dd3ad8c594a41a8355231f1857933 /tests/run
parent0df0012bdac2a987c47c6698e99b1e6645a05811 (diff)
downloadNim-b20663ce192ff8012b2d73113a5d506b8526ec62.tar.gz
fixes #232
Diffstat (limited to 'tests/run')
-rwxr-xr-xtests/run/trepr.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/trepr.nim b/tests/run/trepr.nim
index 622c9c78a..41c830621 100755
--- a/tests/run/trepr.nim
+++ b/tests/run/trepr.nim
@@ -11,6 +11,17 @@ var val = {a, b}
 stdout.write(repr(val))
 stdout.writeln(repr({'a'..'z', 'A'..'Z'}))
 
+type
+  TObj {.pure, inheritable.} = object
+    data: int
+  TFoo = ref object of TObj
+    d2: float
+var foo: TFoo
+new(foo)
+
+when false:
+  # cannot capture this output as it contains a memory address :-/
+  echo foo.repr
 #var testseq: seq[string] = @[
 #  "a", "b", "c", "d", "e"
 #]