diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2015-10-27 23:36:00 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2015-10-27 23:36:00 +0100 |
commit | 3892969af4a3c6f509b553f07b2a7f37aa8de967 (patch) | |
tree | f4ac158a72b3f520848a479ee4faa8dd68792738 /tests/lexer/tident.nim | |
parent | c7eaa8ae034fc22fcb91770f94e08f7c1ebb9963 (diff) | |
parent | d9415fd5cebdc44385cdd092f2c49060c09e2631 (diff) | |
download | Nim-3892969af4a3c6f509b553f07b2a7f37aa8de967.tar.gz |
Merge branch 'devel'
Diffstat (limited to 'tests/lexer/tident.nim')
-rw-r--r-- | tests/lexer/tident.nim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lexer/tident.nim b/tests/lexer/tident.nim index 1ed9894c6..68cc01e70 100644 --- a/tests/lexer/tident.nim +++ b/tests/lexer/tident.nim @@ -1,12 +1,12 @@ type - TIdObj* = object of TObject - id*: int # unique id; use this for comparisons and not the pointers - - PIdObj* = ref TIdObj - PIdent* = ref TIdent - TIdent*{.acyclic.} = object - s*: string + TIdObj* = object of TObject + id*: int # unique id; use this for comparisons and not the pointers + + PIdObj* = ref TIdObj + PIdent* = ref TIdent + TIdent*{.acyclic.} = object + s*: string proc myNewString(L: int): string {.inline.} = result = newString(L) @@ -15,8 +15,8 @@ proc myNewString(L: int): string {.inline.} = for i in 0..L-1: if result[i] == '\0': echo("Correct") - else: + else: echo("Wrong") - + var s = myNewString(8) |