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
8 lines
152 B
Plaintext
8 lines
152 B
Plaintext
1/1: Building matchlits (matchlits.idr)
|
|
Main> Main.test1 : Int -> Int
|
|
test1 256 = 42
|
|
test1 64 = 43
|
|
test1 1234567890 = 44
|
|
test1 _ = 0
|
|
Main> Bye for now!
|