Idris2/tests/idris2/error018/Issue1031-2.idr
Guillaume ALLAIS 31a5175a02 [ re #1031 ] 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