Implement parsing of desctructuring declarations in lambdas
#KT-5828 In Progress
This commit is contained in:
@@ -254,7 +254,12 @@ jump
|
||||
// one can use "it" as a parameter name
|
||||
functionLiteral
|
||||
: "{" statements "}"
|
||||
: "{" (modifiers SimpleName (":" type)?){","} "->" statements "}"
|
||||
: "{" lambdaParameter{","} "->" statements "}"
|
||||
;
|
||||
|
||||
lambdaParameter
|
||||
: variableDeclarationEntry
|
||||
: multipleVariableDeclarations (":" type)?
|
||||
;
|
||||
|
||||
statements
|
||||
|
||||
Reference in New Issue
Block a user