roc/test/snapshots/expr/function_call.md
2025-10-21 18:43:11 -04:00

717 B

META

description=Function call expression
type=expr

SOURCE

add(5, 3)

EXPECTED

UNDEFINED VARIABLE - function_call.md:1:1:1:4

PROBLEMS

UNDEFINED VARIABLE Nothing is named add in this scope. Is there an import or exposing missing up-top?

function_call.md:1:1:1:4:

add(5, 3)

^^^

TOKENS

LowerIdent,NoSpaceOpenRound,Int,Comma,Int,CloseRound,
EndOfFile,

PARSE

(e-apply
	(e-ident (raw "add"))
	(e-int (raw "5"))
	(e-int (raw "3")))

FORMATTED

NO CHANGE

CANONICALIZE

(e-call
	(e-runtime-error (tag "ident_not_in_scope"))
	(e-num (value "5"))
	(e-num (value "3")))

TYPES

(expr (type "Error"))