Fixed function expression recovery

This commit is contained in:
Stanislav Erokhin
2015-02-05 21:10:06 +03:00
parent 983e1bc932
commit a235110d44
6 changed files with 693 additions and 8 deletions
@@ -1235,7 +1235,7 @@ public class JetParsing extends AbstractJetParsing {
myBuilder.disableJoiningComplexTokens();
TokenSet functionNameFollow = TokenSet.create(LT, LPAR, COLON, EQ);
TokenSet functionNameFollow = TokenSet.create(LT, LPAR, RPAR, COLON, EQ);
boolean receiverFound = parseReceiverType("function", functionNameFollow);
// function as expression has no name