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
Incorrect names can be generated for generalised variables #4291
Comments
Here is another example: variable
A : Set
x : A
postulate
F : Set → Set
P : {x : Set} → F x → Set
p : P x
-- fails : (A : Set) (f : F A) → P f
-- fails A f = p {x = f}
works : (A : Set) (f : F A) → P f
works A f = p {x = _} {x = f} Agda infers the following type for {x : Set} {x = x₁ : F x} → P x₁ There should only be one implicit argument called |
We need to distinguish user-written from system-generated names more seriously. In the OP, the name |
instead of the name suggestion of the meta
Both names should be |
instead of the name suggestion of the meta
The following code should not be accepted:
Agda infers the following type for
g
:The function
g
should not have an implicit argument calledB
.The text was updated successfully, but these errors were encountered: