From 4ca2dcb404aa1b92900e838790d5df554fc0cb9a Mon Sep 17 00:00:00 2001 From: metagn Date: Tue, 6 Dec 2022 15:11:56 +0300 Subject: 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 --- tests/varres/tprevent_forloopvar_mutations.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/varres') diff --git a/tests/varres/tprevent_forloopvar_mutations.nim b/tests/varres/tprevent_forloopvar_mutations.nim index fef75b339..c9aeb94d8 100644 --- a/tests/varres/tprevent_forloopvar_mutations.nim +++ b/tests/varres/tprevent_forloopvar_mutations.nim @@ -1,6 +1,6 @@ discard """ errormsg: "type mismatch: got " - nimout: '''tprevent_forloopvar_mutations.nim(16, 7) Error: type mismatch: got + nimout: '''tprevent_forloopvar_mutations.nim(16, 3) Error: type mismatch: got but expected one of: proc inc[T, V: Ordinal](x: var T; y: V = 1) first type mismatch at position: 1 -- cgit 1.4.1-2-gfad0