Conversation
|
A good way to judge the merits or problems of the change to optional names is to look at the diff of |
There was a problem hiding this comment.
These changes should be reverted
There was a problem hiding this comment.
This a new neg test, it should have it's own .check file
51fb223 to
2e0047a
Compare
Update given syntax to latest discussed variant in the SIP tests/pos/given-syntax.scala shows a semi-systematic list of possible syntax forms.
2e0047a to
62c71c0
Compare
| GivenImpl ::= GivenType ([‘=’ Expr] | TemplateBody) | ||
| | ConstrApps TemplateBody | ||
| GivenConditional ::= DefTypeParamClause | ||
| | DefTermParamClause |
There was a problem hiding this comment.
is this really DefTermParamClause, or can it be FunParamClause instead? as far as i can tell, the difference is in modifiers (inline, erased) and default value.
There was a problem hiding this comment.
It s a DefTypeParamClause. Modifiers and default values are allowed.
There was a problem hiding this comment.
how do we resolve ambiguity between DefTermParamClause and '(' FunArgTypes ')', especially since a simple type can look like a parameter?
|
You mean, if the given actually implements a function? In that case the function has to come in parentheses. |
Update given syntax to latest discussed variant in the SIP
tests/pos/given-syntax.scala shows a semi-systematic list of possible syntax forms.