Anonymous function expressions ('fun(...) { ... }') and local functions (no closures yet).

This commit is contained in:
Dmitry Petrov
2016-08-26 12:39:27 +03:00
committed by Dmitry Petrov
parent 83c3bdd788
commit ac80195597
8 changed files with 73 additions and 3 deletions
@@ -0,0 +1,8 @@
FILE /anonymousFunction.kt
PROPERTY public val anonymous: () -> kotlin.Unit getter=null setter=null
EXPRESSION_BODY
BLOCK type=() -> kotlin.Unit operator=ANONYMOUS_FUNCTION
FUN local final fun <no name provided>(): kotlin.Unit
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
CALLABLE_REFERENCE local final fun <no name provided>(): kotlin.Unit type=() -> kotlin.Unit