KT-156 Fix the this<Super> syntax
In progress: super<List> must work, but currently it does not, only super<List<Foo>> works, where Foo is ignored.
This commit is contained in:
@@ -19,7 +19,7 @@ internal class Example<X, T : Comparable<X>>(protected val x : Foo<X, T>, y : So
|
||||
class
|
||||
: modifiers ("class" | "trait") SimpleName
|
||||
typeParameters?
|
||||
modifiers ("(" primaryConstructorParameter{","} ")")?
|
||||
modifiers ("(" functionParameter{","} ")")?
|
||||
(":" annotations delegationSpecifier{","})?
|
||||
typeConstraints
|
||||
(classBody? | enumClassBody)
|
||||
|
||||
@@ -16,7 +16,7 @@ h3. Precedence
|
||||
| |Elvis|{{?:}} |
|
||||
| |Named checks|{{in}}, {{\!in}}, {{is}}, {{\!is}} |
|
||||
| |Comparison|{{<}}, {{>}}, {{<=}}, {{>=}} |
|
||||
| |Equality|{{==}}, {{\!==}}, {{===}}, {{\!===}} |
|
||||
| |Equality|{{==}}, {{\!==}}|
|
||||
| |Conjunction|{{&&}}|
|
||||
| |Disjunction|{{\|\|}}|
|
||||
| |Arrow|{{\->}}|
|
||||
@@ -113,7 +113,8 @@ atomicExpression
|
||||
: literalConstant
|
||||
: functionLiteral
|
||||
: tupleLiteral
|
||||
: "this" label? ("<" type ">")?
|
||||
: "this" label?
|
||||
: "super" ("<" type ">")? label?
|
||||
: if
|
||||
: when
|
||||
: try
|
||||
@@ -184,7 +185,7 @@ comparisonOperation
|
||||
;
|
||||
|
||||
equalityOperation
|
||||
: "!=" : "==" : "===" : "!=="
|
||||
: "!=" : "=="
|
||||
;
|
||||
|
||||
assignmentOperator
|
||||
|
||||
Reference in New Issue
Block a user