From b20663ce192ff8012b2d73113a5d506b8526ec62 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 19 Oct 2012 13:24:42 +0200 Subject: fixes #232 --- tests/run/trepr.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/run') 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" #] -- cgit 1.4.1-2-gfad0