Idris2/tests/idris2/reg020/matchlits.idr
Edwin Brady 65e3f63598 Make sure literals are normalise on LHS
The hack (optimisation?) to normalise integer literals when below some
threshold is fine on the RHS, but on the LHS causes problems since we
need them in normal form for pattern matching. Fixes #112
2020-05-23 11:48:15 +01:00

6 lines
95 B
Idris

test1 : Int -> Int
test1 0x100 = 42
test1 0o100 = 43
test1 1234567890 = 44
test1 _ = 0