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

Missing production rule #2601

Open
danecek opened this issue Oct 10, 2022 · 3 comments
Open

Missing production rule #2601

danecek opened this issue Oct 10, 2022 · 3 comments

Comments

@danecek
Copy link
Contributor

danecek commented Oct 10, 2022

Missing production rule for TypeParamClause and TypeArgs in https://docs.scala-lang.org/scala3/reference/syntax.html

TypeDcl ::= id [TypeParamClause] {FunParamClause} TypeBounds [‘=’ Type] ;
SimpleType ::= SimpleLiteral
| ‘?’ TypeBounds
| id
| Singleton ‘.’ id
| Singleton ‘.’ ‘type’
| ‘(’ Types ‘)’
| Refinement
| ‘$’ ‘{’ Block ‘}’ -- unless inside quoted pattern
| ‘$’ ‘{’ Pattern ‘}’ -- only inside quoted pattern
| SimpleType1 TypeArgs

@bishabosha
Copy link
Member

bishabosha commented Oct 11, 2022

I think it is a typo and it should be HkTypeParamClause, but TypeArgs is listed on the page as

TypeArgs          ::=  ‘[’ Types ‘]’ ;

@danecek
Copy link
Contributor Author

danecek commented Oct 11, 2022

I am sorry for my mistake. Probably I exchanged SimpleType1 for TypeArgs when I paste-copied from the rule to the comment.

@bishabosha
Copy link
Member

I opened scala/scala3#16166 to track this, seeing as that is where the source for the scala 3 reference is

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