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

818 B

META

description=Function application expression
type=expr

SOURCE

foo(42, "hello")

EXPECTED

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

PROBLEMS

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

apply_function.md:1:1:1:4:

foo(42, "hello")

^^^

TOKENS

LowerIdent,NoSpaceOpenRound,Int,Comma,StringStart,StringPart,StringEnd,CloseRound,
EndOfFile,

PARSE

(e-apply
	(e-ident (raw "foo"))
	(e-int (raw "42"))
	(e-string
		(e-string-part (raw "hello"))))

FORMATTED

NO CHANGE

CANONICALIZE

(e-call
	(e-runtime-error (tag "ident_not_in_scope"))
	(e-num (value "42"))
	(e-string
		(e-literal (string "hello"))))

TYPES

(expr (type "Error"))