Created
September 2, 2022 03:24
-
-
Save donovancrichton/b623cb4a3983d447186218cd1a828fcd to your computer and use it in GitHub Desktop.
Non-covering case when pattern matching on dependent pair.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CantPatternMatchOnDPair | |
%default total | |
data Expr : Type -> Type where | |
Lam : {a, b : Type} -> (a -> Expr b) -> Expr (a -> b) | |
-- this should be covering | |
f : (a : Type ** Expr a) -> (b : Type ** Expr b) | |
f (ty ** focus) = | |
case focus of | |
(Lam f) => ?look_0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment