Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error message #28

Closed
francoisthire opened this issue Mar 20, 2018 · 1 comment
Closed

Weird error message #28

francoisthire opened this issue Mar 20, 2018 · 1 comment

Comments

@francoisthire
Copy link
Contributor

francoisthire commented Mar 20, 2018

On this example

#NAME bug.

type : Type.
def term : type -> Type.

pi : A : type -> (term A -> type) -> type.
[A,B] term (pi A B) --> a : term A -> term (B a).

def i (A : type) (B : term A -> type) : term (pi A B) := z : term A => z.

The error given is

Cannot type the definition of i test.dk, 9:4-5

Why?

@fblanqui
Copy link
Member

fblanqui commented May 2, 2018

Your example is tests/KO/francois.dk . The error message is now:

Cannot solve constraint [term A] ~ [term (B z)]
Cannot type the definition of [i] at [tests/KO/francois.dk, 7:4-5].
Error at [tests/KO/francois.dk, 7:0-72].

@fblanqui fblanqui closed this as completed May 2, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants