mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
410 B
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)])]"))