c2nim compiles again [#9 state:resolved]; better error message for named parameters
This commit is contained in:
parent
f31eab8536
commit
dbc5048a9a
8 changed files with 25 additions and 3 deletions
8
tests/accept/compile/tnamedparams.nim
Normal file
8
tests/accept/compile/tnamedparams.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import pegs
|
||||
|
||||
discard parsePeg(
|
||||
pattern = "input",
|
||||
filename = "filename",
|
||||
line = 1,
|
||||
col = 23)
|
||||
|
||||
|
|
@ -15,6 +15,7 @@ tinvalidnewseq.nim;10;type mismatch: got (array[0..6, string], int)
|
|||
tinvwhen.nim;6;invalid indentation
|
||||
titer4.nim;2;iterator within for loop context expected
|
||||
tmethod.nim;2;'method' needs a parameter that has an object type
|
||||
tnamedparams.nim;3; Error: type mismatch: got (input: string, filename: string, line: int, col: int)
|
||||
tnamspc.nim;5;undeclared identifier: 'global'
|
||||
tnoop.nim;6;expression 'a()' cannot be called
|
||||
tnot.nim;9;type mismatch
|
||||
|
|
|
|||
|
8
tests/reject/tnamedparams.nim
Normal file
8
tests/reject/tnamedparams.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import pegs
|
||||
|
||||
discard parsePeg(
|
||||
input = "input",
|
||||
filename = "filename",
|
||||
line = 1,
|
||||
col = 23)
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
#
|
||||
# Nimrod Tester
|
||||
# (c) Copyright 2010 Andreas Rumpf
|
||||
# (c) Copyright 2011 Andreas Rumpf
|
||||
#
|
||||
# See the file "copying.txt", included in this
|
||||
# distribution, for details about the copyright.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue