KT-918 Use-case for using some functions and lambdas (confused)

This commit is contained in:
Andrey Breslav
2012-01-16 17:22:12 +04:00
parent 7142bc10d0
commit fb463da84b
6 changed files with 159 additions and 120 deletions
@@ -468,8 +468,9 @@ public class JetExpressionParsing extends AbstractJetParsing {
*/
protected boolean parseCallWithClosure() {
boolean success = false;
while (!myBuilder.newlineBeforeCurrentToken()
&& (at(LBRACE)
// while (!myBuilder.newlineBeforeCurrentToken()
// && (at(LBRACE)
while ((at(LBRACE)
|| atSet(LABELS) && lookahead(1) == LBRACE)) {
if (!at(LBRACE)) {
assert _atSet(LABELS);