Add basic FIR -> IR converter with a set of text tests
Tests duplicate IrTextTestCaseGenerated #KT-24065 Fixed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FILE fqName:<root> fileName:/localFunction.kt
|
||||
FUN name:outer visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
BLOCK_BODY
|
||||
VAR name:x type:kotlin.Int [var]
|
||||
CONST Int type=kotlin.Int value=0
|
||||
FUN name:local visibility:local modality:FINAL <> () returnType:kotlin.Unit
|
||||
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
|
||||
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
|
||||
Reference in New Issue
Block a user