1
1
mirror of https://github.com/idris-lang/Idris2.git synced 2025-01-03 00:55:00 +03:00
Idris2/tests/idris2/error018/Issue1031-2.idr
Guillaume ALLAIS 31a5175a02 [ re ] Disallow ? patterns on the LHS
We do this during desugaring because elaboration may insert valid
`?` values on the LHS (e.g. when elaborating things that cannot be
pattern-matched on and should be checked to be forced).
2021-05-20 10:23:00 +01:00

5 lines
65 B
Idris

%default total
foo : (x : Bool) -> x === True
foo = \ ? => Refl