diff options
author | Araq <rumpf_a@web.de> | 2011-04-03 21:32:55 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-03 21:32:55 +0200 |
commit | 94f4256811625f2d9f02b7e885c9476de431f6a2 (patch) | |
tree | ab06f3dff68260cb31cc65a6d57efaff3ba32043 /tests | |
parent | 4741e8f9a1d1148d58e129626952219e14ede255 (diff) | |
download | Nim-94f4256811625f2d9f02b7e885c9476de431f6a2.tar.gz |
Koenig's lookup implementation
Diffstat (limited to 'tests')
-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) |