We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 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
The text was updated successfully, but these errors were encountered:
I think it is a typo and it should be HkTypeParamClause, but TypeArgs is listed on the page as
HkTypeParamClause
TypeArgs
TypeArgs ::= ‘[’ Types ‘]’ ;
Sorry, something went wrong.
I am sorry for my mistake. Probably I exchanged SimpleType1 for TypeArgs when I paste-copied from the rule to the comment.
I opened scala/scala3#16166 to track this, seeing as that is where the source for the scala 3 reference is
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: