diff options
Diffstat (limited to 'tests/run')
-rwxr-xr-x | tests/run/trepr.nim | 11 |
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" #] |