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

Erased instance arguments are not considered for erased instance goals #5787

Closed
jespercockx opened this issue Feb 11, 2022 · 0 comments · Fixed by #5788
Closed

Erased instance arguments are not considered for erased instance goals #5787

jespercockx opened this issue Feb 11, 2022 · 0 comments · Fixed by #5788
Assignees
Labels
erasure instance Instance resolution type: bug Issues and pull requests about actual bugs
Milestone

Comments

@jespercockx
Copy link
Member

Minimal example:

postulate
  A B : Set
  f : @0 {{A}}  B

g : @0 {{A}}  B
g = f

I'm getting the following error:

No instance of type A was found in scope.
when checking that the expression f has type B

even though defining g {{x}} = f {{x}} works perfectly fine.

@jespercockx jespercockx added type: bug Issues and pull requests about actual bugs instance Instance resolution erasure labels Feb 11, 2022
@jespercockx jespercockx self-assigned this Feb 11, 2022
jespercockx added a commit to jespercockx/agda that referenced this issue Feb 11, 2022
jespercockx added a commit to jespercockx/agda that referenced this issue Feb 11, 2022
@jespercockx jespercockx added this to the 2.6.3 milestone Feb 11, 2022
@andreasabel andreasabel modified the milestones: 2.6.3, 2.6.2.2 Mar 14, 2022
@andreasabel andreasabel mentioned this issue Mar 15, 2022
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erasure instance Instance resolution type: bug Issues and pull requests about actual bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants