Generate property initializer within property scope

This commit is contained in:
Dmitry Petrov
2017-05-04 14:09:12 +03:00
parent 8e84862afa
commit ddb2b7508b
4 changed files with 24 additions and 4 deletions
@@ -0,0 +1,13 @@
FILE /catchParameterInTopLevelProperty.kt
PROPERTY public val test: kotlin.Unit
FIELD PROPERTY_BACKING_FIELD public val test: kotlin.Unit
EXPRESSION_BODY
TRY type=kotlin.Unit
try: BLOCK type=kotlin.Unit origin=null
CATCH parameter=e: Throwable
VAR CATCH_PARAMETER val e: kotlin.Throwable
BLOCK type=kotlin.Unit origin=null
FUN DEFAULT_PROPERTY_ACCESSOR public fun <get-test>(): kotlin.Unit
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-test>(): Unit'
GET_FIELD 'test: Unit' type=kotlin.Unit origin=null