mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
65e3f63598
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
6 lines
95 B
Idris
6 lines
95 B
Idris
test1 : Int -> Int
|
|
test1 0x100 = 42
|
|
test1 0o100 = 43
|
|
test1 1234567890 = 44
|
|
test1 _ = 0
|