roc/test/snapshots/expr_int_negative.md
2025-11-23 01:22:01 -05:00

410 B

META

description=Negative integer literal canonicalization
type=expr

SOURCE

-123

EXPECTED

NIL

PROBLEMS

NIL

TOKENS

Int,
EndOfFile,

PARSE

(e-int (raw "-123"))

FORMATTED

NO CHANGE

CANONICALIZE

(e-num (value "-123"))

TYPES

(expr (type "a where [a.from_numeral : Numeral -> Try(a, [InvalidNumeral(Str)])]"))