roc/test/snapshots/expr/tuple_empty_unbound.md
2025-10-16 07:00:23 -07:00

603 B

META

description=Empty tuple literal
type=expr

SOURCE

()

EXPECTED

EMPTY TUPLE NOT ALLOWED - tuple_empty_unbound.md:1:1:1:3

PROBLEMS

EMPTY TUPLE NOT ALLOWED I am part way through parsing this tuple, but it is empty: tuple_empty_unbound.md:1:1:1:3:

()

^^

If you want to represent nothing, try using an empty record: {}.

TOKENS

OpenRound,CloseRound,
EndOfFile,

PARSE

(e-tuple)

FORMATTED

NO CHANGE

CANONICALIZE

(e-runtime-error (tag "empty_tuple"))

TYPES

(expr (type "Error"))