diff options
author | Arne Döring <arne.doering@gmx.net> | 2021-03-30 02:06:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 02:06:51 +0200 |
commit | 159c06e0451f85842b2168886565fa57496a2c68 (patch) | |
tree | 7ee0c98d0039ef80ce38eecdb8a2105a11f25809 /tests/lexer | |
parent | 35655cd1899ad2d85ca93ad7482572f0f345d8fb (diff) | |
download | Nim-159c06e0451f85842b2168886565fa57496a2c68.tar.gz |
unify tuple expressions (#13793)
* unify tuple expressions * fix test * fix test * apply feedback * Handle empty tuples * Fix rendering named unary tuple * Protect static NimNode against stripping * Slightly less hacky * Revert "Slightly less hacky" This reverts commit 170c5aec0addc029f637afbc948700ca006b7942. * Slightly less hacky * Cleanup * Fix test * Fix another test * Add condsym * Rebase fallout * changelog: Move from compiler changes to language changes * Add stricter tests * Add empty tuple example to doc/astspec * Fix test Co-authored-by: Clyybber <darkmine956@gmail.com>
Diffstat (limited to 'tests/lexer')
-rw-r--r-- | tests/lexer/tunary_minus.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lexer/tunary_minus.nim b/tests/lexer/tunary_minus.nim index 87b3cb52d..1641e918c 100644 --- a/tests/lexer/tunary_minus.nim +++ b/tests/lexer/tunary_minus.nim @@ -45,7 +45,7 @@ template main = doAssert lispReprStr([-1]) == """(Bracket (IntLit -1))""" doAssert (-1, 2)[0] == minusOne: "unable to handle negatives after parenthesis" - doAssert lispReprStr((-1, 2)) == """(Par (IntLit -1) (IntLit 2))""" + doAssert lispReprStr((-1, 2)) == """(TupleConstr (IntLit -1) (IntLit 2))""" proc x(): int = var a = 1;-1 # the -1 should act as the return value doAssert x() == minusOne: |