mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
7a5f63eab0
e79e4277
("[ fix ] Make Bits types use int switch statement in RefC")
made the RefC backend generate code calling `extractInt` with Bits
types, bit did not add the extra cases to `extractInt`. This commit adds
the missing cases.
Fixes #2452
10 lines
102 B
Idris
10 lines
102 B
Idris
x : Bits8
|
|
x = 0
|
|
|
|
main : IO ()
|
|
main = do
|
|
putStrLn $
|
|
case x of
|
|
0 => "good"
|
|
_ => "bad"
|