FIR2IR: support assignments of local variables

This commit is contained in:
Mikhail Glukhikh
2019-05-16 14:24:39 +03:00
parent 68da1a97d1
commit a973a21ec6
15 changed files with 99 additions and 41 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ FILE fqName:<root> fileName:/localFunction.kt
BLOCK_BODY
VAR name:<unary> type:kotlin.Int [val]
GET_VAR 'var x: kotlin.Int [var] declared in <root>.outer' type=kotlin.Int origin=null
ERROR_CALL 'Unresolved reference: R|<local>/x|' type=IrErrorType
SET_VAR 'var x: kotlin.Int [var] declared in <root>.outer' type=kotlin.Int origin=null
CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
$this: GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
GET_VAR 'val <unary>: kotlin.Int [val] declared in <root>.outer.local' type=kotlin.Int origin=null
CALL 'local final fun local (): kotlin.Unit declared in <local>' type=kotlin.Unit origin=null