summary refs log tree commit diff stats
path: root/tests/errmsgs/tsigmatch2.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2022-12-06 15:11:56 +0300
committerGitHub <noreply@github.com>2022-12-06 13:11:56 +0100
commit4ca2dcb404aa1b92900e838790d5df554fc0cb9a (patch)
tree13ba43b84b90c24f23b528fe110e15338e35fae6 /tests/errmsgs/tsigmatch2.nim
parent1564ae650f8d4d4c30adf4528f74d7707e4cb737 (diff)
downloadNim-4ca2dcb404aa1b92900e838790d5df554fc0cb9a.tar.gz
Named arguments in commands + many grammar fixes (#20994)
* Breaking parser changes, implement https://github.com/nim-lang/RFCs/issues/442

Types are separated from expressions and better reflected in the grammar.

* add test

* more accurate grammar

* fix keyword typedescs

* accept expressions in proc argument lists

* CI "fixes"

* fixes

* allow full ref expressions again, adapt old tests

* cleanup, fix some tests

* improve grammar, try and revert semtypes change

* restrict sigil binding to identOrLiteral

* fix, should have caught this immediately

* add changelog entry, fix double not nil bug

* correct grammar

* change section

* fix

* real fix hopefully

* fix test

* support LL(1) for tuples

* make grammar.txt too
Diffstat (limited to 'tests/errmsgs/tsigmatch2.nim')
-rw-r--r--tests/errmsgs/tsigmatch2.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/errmsgs/tsigmatch2.nim b/tests/errmsgs/tsigmatch2.nim
index 4996634c9..31c966337 100644
--- a/tests/errmsgs/tsigmatch2.nim
+++ b/tests/errmsgs/tsigmatch2.nim
@@ -14,7 +14,7 @@ proc foo(i: Foo): string
 
 expression: foo(1.2)
 tsigmatch2.nim(40, 14) Error: expression '' has no type (or is ambiguous)
-tsigmatch2.nim(46, 7) Error: type mismatch: got <int literal(1)>
+tsigmatch2.nim(46, 3) Error: type mismatch: got <int literal(1)>
 but expected one of:
 proc foo(args: varargs[string, myproc])
   first type mismatch at position: 1
@@ -44,4 +44,4 @@ block:
     let temp = 12.isNil
   proc foo(args: varargs[string, myproc]) = discard
   foo 1
-static: echo "done"
\ No newline at end of file
+static: echo "done"