aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-12 18:12:27 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-12 18:14:04 +0200
commitc7f3b45abf221c432b3fbd7462741b00a9e10142 (patch)
tree32171eb1c314e64f155fbd05d9ef01e43cac4f53 /docs
parent84a1a7ae7b1e4931fe04a5a21a04bb858e8acebb (diff)
downloaddotty-c7f3b45abf221c432b3fbd7462741b00a9e10142.tar.gz
dotty-c7f3b45abf221c432b3fbd7462741b00a9e10142.tar.bz2
dotty-c7f3b45abf221c432b3fbd7462741b00a9e10142.zip
Drop restriction to 2nd order hk types
Allow hk type parameters to be higher kinded themselves.
Diffstat (limited to 'docs')
-rw-r--r--docs/SyntaxSummary.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/SyntaxSummary.txt b/docs/SyntaxSummary.txt
index 45937fb54..6751c90e2 100644
--- a/docs/SyntaxSummary.txt
+++ b/docs/SyntaxSummary.txt
@@ -225,7 +225,8 @@ grammar.
TypTypeParam ::= {Annotation} id [HkTypeParamClause] TypeBounds
HkTypeParamClause ::= `[' HkTypeParam {`,' HkTypeParam} `]'
- HkTypeParam ::= {Annotation} ['+' | `-'] (Id | `_') TypeBounds
+ HkTypeParam ::= {Annotation} ['+' | `-'] (Id[HkTypeParamClause] | `_')
+ TypeBounds
ClsParamClauses ::= {ClsParamClause} [[nl] `(' `implicit' ClsParams `)']
ClsParamClause ::= [nl] `(' [ClsParams] ')'
@@ -280,7 +281,7 @@ grammar.
DefDcl ::= DefSig [`:' Type] DefDef(_, name, tparams, vparamss, tpe, EmptyTree)
DefSig ::= id [DefTypeParamClause] DefParamClauses
TypeDcl ::= id [TypTypeParamClause] ['=' Type] TypeDefTree(_, name, tparams, tpt)
- | id [HkParamClause] TypeBounds TypeDefTree(_, name, tparams, bounds)
+ | id [HkTypeParamClause] TypeBounds TypeDefTree(_, name, tparams, bounds)
Def ::= `val' PatDef
| `var' VarDef