Function literal expression outside the parentheses wrapped into JetFunctionLiteralArgument

Extracted JetFunctionLiteralArgument.moveInsideParenthesesAndReplaceWith util function
This commit is contained in:
Svetlana Isakova
2014-07-12 20:03:38 +04:00
parent 4477a96ca7
commit 2ae87cae4a
59 changed files with 1040 additions and 912 deletions
@@ -55,7 +55,7 @@ fun main1() {
1.{Int.() -> 1}();
{1}();
{(x : Int) -> x}(1)
1.{Int.(x : Int) -> x}(1)
1.{Int.(x : Int) -> x}(1);
@l{1}()
1.({Int.() -> 1})()
1.(f())()