diff options
Diffstat (limited to 'tests/tambsym2.nim')
-rwxr-xr-x | tests/tambsym2.nim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/tambsym2.nim b/tests/tambsym2.nim deleted file mode 100755 index 9178182aa..000000000 --- a/tests/tambsym2.nim +++ /dev/null @@ -1,18 +0,0 @@ -# Test overloading of procs with locals - -type - TMyType = object - len: int - data: string - -proc len(x: TMyType): int {.inline.} = return x.len - -proc x(s: TMyType, len: int) = - writeln(stdout, len(s)) - -var - m: TMyType -m.len = 7 -m.data = "1234" - -x(m, 5) #OUT 7 |