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

Underscore name of an implicit argument in a signature of an interface function does not work #3291

Open
buzden opened this issue May 28, 2024 · 0 comments

Comments

@buzden
Copy link
Contributor

buzden commented May 28, 2024

Steps to Reproduce

%default total

interface S where
  pop : {_ : Unit} -> Unit

S where
  pop = ?fooo

The signature may have an auto-implicit parameter with any quantity, in fact. But the name must be _.

Expected Behavior

Code typechecks

Observed Behavior

Error: While processing right hand side of Stack implementation at X:15:1--20:14. {conArg:2503} is not a valid argument
in pop s

Lack of name, of any non-_ name, of explicitness of a parameter makes the bug disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants