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

826 B

META

description=Invalid integer literal that exceeds i128 range
type=expr

SOURCE

99999999999999999999999999999999999999999

EXPECTED

INVALID NUMBER - expr_int_invalid.md:1:1:1:42

PROBLEMS

INVALID NUMBER This number literal is not valid: 99999999999999999999999999999999999999999

expr_int_invalid.md:1:1:1:42:

99999999999999999999999999999999999999999

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check that the number is correctly formatted. Valid examples include: 42, 3.14, 0x1A, or 1_000_000.

TOKENS

Int,
EndOfFile,

PARSE

(e-int (raw "99999999999999999999999999999999999999999"))

FORMATTED

NO CHANGE

CANONICALIZE

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

TYPES

(expr (type "Error"))