diff options
Diffstat (limited to 'tests/accept/run/tkoeniglookup.nim')
-rw-r--r-- | tests/accept/run/tkoeniglookup.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/accept/run/tkoeniglookup.nim b/tests/accept/run/tkoeniglookup.nim index 07c5b46be..e6f5c0112 100644 --- a/tests/accept/run/tkoeniglookup.nim +++ b/tests/accept/run/tkoeniglookup.nim @@ -9,8 +9,8 @@ type TMyObj = object x, y: int -proc `$`*(a: TMyObj): bool = - result = "x: " & a.x & " y: " & a.y +proc `$`*(a: TMyObj): string = + result = "x: " & $a.x & " y: " & $a.y var a: TMyObj echo toString(a) |