[Parser] Move function's contracts parsing in before type constraints parsing
This commit is contained in:
@@ -1671,10 +1671,10 @@ public class KotlinParsing extends AbstractKotlinParsing {
|
|||||||
parseTypeRef();
|
parseTypeRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
parseTypeConstraintsGuarded(typeParameterListOccurred);
|
|
||||||
|
|
||||||
parseFunctionContract();
|
parseFunctionContract();
|
||||||
|
|
||||||
|
parseTypeConstraintsGuarded(typeParameterListOccurred);
|
||||||
|
|
||||||
if (at(SEMICOLON)) {
|
if (at(SEMICOLON)) {
|
||||||
advance(); // SEMICOLON
|
advance(); // SEMICOLON
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user