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

Non-dependent, irrelevant, nameless arguments aren't accepted in arrows #4880

Closed
andy-morris opened this issue Aug 27, 2020 · 2 comments
Closed
Assignees
Labels
hidden arguments Insertion of hidden arguments and implicit lambdas irrelevance Issues to do with irrelevance annotations parser Problems with the parser's implementation (rather than with decisions about syntax) type: enhancement Issues and pull requests about possible improvements
Milestone

Comments

@andy-morris
Copy link

(Agda 2.6.1)

These are all accepted:

_ : A  B  A
_ : A  {B}  A
_ : A  .B  A
_ : A  .{_ : B}  A

But this is rejected with {B} cannot appear by itself:

_ : A  .{B}  A
@gallais gallais added status: info-needed More information is needed from the bug reporter to confirm the issue. and removed status: info-needed More information is needed from the bug reporter to confirm the issue. labels Aug 28, 2020
@gallais
Copy link
Member

gallais commented Aug 28, 2020

Self-contained file:

module untypedbinding (A B : Set) where

_ : A  B  A
_ = {!!}

_ : A  {B}  A
_ = {!!}

_ : A  .B  A
_ = {!!}

_ : A  .{_ : B}  A
_ = {!!}

_ : A  .{B}  A
_ = {!!}

@andreasabel andreasabel self-assigned this Sep 8, 2020
@andreasabel andreasabel added hidden arguments Insertion of hidden arguments and implicit lambdas irrelevance Issues to do with irrelevance annotations parser Problems with the parser's implementation (rather than with decisions about syntax) labels Sep 8, 2020
@andreasabel andreasabel added this to the 2.6.2 milestone Sep 8, 2020
andreasabel added a commit that referenced this issue Sep 8, 2020
@andreasabel
Copy link
Member

The fix 3a7316e also includes the case {.B} -> A.

@andreasabel andreasabel added the type: enhancement Issues and pull requests about possible improvements label Oct 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hidden arguments Insertion of hidden arguments and implicit lambdas irrelevance Issues to do with irrelevance annotations parser Problems with the parser's implementation (rather than with decisions about syntax) type: enhancement Issues and pull requests about possible improvements
Projects
None yet
Development

No branches or pull requests

3 participants