-
-
Save ohad/c0053b127c74a2044ecd5a55f50dc74b to your computer and use it in GitHub Desktop.
Idris example that fails
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
data A : Type where | |
The : Type -> A | |
U : A -> Type | |
U (The x) = x | |
works : (a : A) -> (H : U a) -> (let q = H in Nat) | |
works a h = 0 | |
fails : (a : A) -> (H : U a) -> (let q : U a = H in Nat) | |
fails a h = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment