File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ It provides the best of all worlds:
103
103
104
104
### Specification
105
105
We amend the syntax of def parameter clauses as follows:
106
-
107
106
~~~
108
107
DefDcl ::= DefSig ‘:’ Type
109
108
DefDef ::= DefSig [‘:’ Type] ‘=’ Expr
110
109
DefSig ::= id [DefParamClauses] [DefImplicitClause]
111
- DefParamClauses ::= DefParamClauseChunk {DefParamClauseChunk}
112
- DefParamClauseChunk ::= [ DefTypeParamClause] TermOrUsingParamClause {TermOrUsingParamClause}
113
- TermOrUsingParamClause ::= DefTermParamClause
110
+ DefParamClauses ::= DefParamClause { DefParamClause } -- and two DefTypeParamClause cannot be adjacent
111
+ DefParamClause ::= DefTypeParamClause
112
+ | DefTermParamClause
114
113
| UsingParamClause
115
114
DefTypeParamClause ::= [nl] ‘[’ DefTypeParam {‘,’ DefTypeParam} ‘]’
116
115
DefTypeParam ::= {Annotation} id [HkTypeParamClause] TypeParamBounds
You can’t perform that action at this time.
0 commit comments