Variable declaration incorrectly parsed #2050

Closed
flaviut opened this Issue Feb 1, 2015 · 1 comment

Projects

None yet

3 participants

@flaviut
Contributor
flaviut commented Feb 1, 2015
let v: proc (a, b: int): int = `+`
lib/system.nim(669, 5) Error: internal error: proc has no result symbol
Traceback (most recent call last)
nim.nim                  nim
nim.nim                  handleCmdLine
main.nim                 mainCommand
main.nim                 commandCompileToC
modules.nim              compileProject
modules.nim              compileModule
passes.nim               processModule
passes.nim               processTopLevelStmt
cgen.nim                 myProcess
ccgstmts.nim             genStmts
ccgexprs.nim             expr
ccgstmts.nim             genStmts
ccgexprs.nim             expr
ccgstmts.nim             genVarStmt
ccgstmts.nim             genSingleVar
ccgstmts.nim             loadInto
ccgexprs.nim             expr
ccgexprs.nim             genClosure
cgen.nim                 initLocExpr
ccgexprs.nim             expr
ccgexprs.nim             genConv
ccgexprs.nim             genSomeCast
cgen.nim                 initLocExpr
ccgexprs.nim             expr
cgen.nim                 genProc
cgen.nim                 genProcNoForward
cgen.nim                 genProcAux
msgs.nim                 internalError
msgs.nim                 liMessage
msgs.nim                 handleError
@flaviut flaviut changed the title from Variable declaration incorrect parsed to Variable declaration incorrectly parsed Feb 1, 2015
@dom96
Member
dom96 commented Feb 1, 2015

Pretty sure that's parsed correctly.

let v: proc (a, b: int): int = proc (a, b: int): int = `+`(a, b)
@Araq Araq added the Crash label Oct 21, 2016
@Araq Araq added a commit that closed this issue Dec 30, 2016
@Araq Araq fixes #2050 cfea779
@Araq Araq closed this in cfea779 Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment