FIR2IR: fix handling constructors & their symbols (related also to local classes)

This commit is contained in:
Mikhail Glukhikh
2019-10-28 16:10:42 +03:00
parent 7dee1cd9d2
commit 384134a069
4 changed files with 42 additions and 52 deletions
@@ -1,14 +0,0 @@
FILE fqName:<root> fileName:/localClasses.kt
FUN name:outer visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
CLASS CLASS name:LocalClass modality:FINAL visibility:local superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.outer.LocalClass
CONSTRUCTOR visibility:public <> () returnType:IrErrorType [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LocalClass modality:FINAL visibility:local superTypes:[kotlin.Any]'
FUN name:foo visibility:public modality:FINAL <> ($this:<root>.outer.LocalClass) returnType:kotlin.Unit
$this: VALUE_PARAMETER name:<this> type:<root>.outer.LocalClass
BLOCK_BODY
ERROR_CALL 'Unresolved reference: <Unresolved name: foo>#' type=IrErrorType
+1
View File
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun outer() {
class LocalClass {
fun foo() {}