Idris2/tests/idris2/error018/Issue1031.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
79 B
Idris

%default total
ohNo : Void
ohNo = let (? ** x) = the (a ** a) (Int ** 5) in x