FIR2IR: make anonymous object constructor public to match K1 behavior
This commit is contained in:
committed by
Space Team
parent
e1c2dc06f1
commit
0ecfcf4380
@@ -5,7 +5,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
|
||||
BLOCK type=<root>.box.<no name provided> origin=OBJECT_LITERAL
|
||||
CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.box.<no name provided>
|
||||
CONSTRUCTOR visibility:private <> () returnType:<root>.box.<no name provided> [primary]
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.box.<no name provided> [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:<no name provided> modality:FINAL visibility:local superTypes:[kotlin.Any]'
|
||||
@@ -113,7 +113,7 @@ FILE fqName:<root> fileName:/InnerClassInAnonymous.kt
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=OBJECT_LITERAL
|
||||
CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.box.<no name provided>' type=<root>.box.<no name provided> origin=OBJECT_LITERAL
|
||||
RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>'
|
||||
CALL 'public final fun foo (): kotlin.String declared in <root>.box.<no name provided>' type=kotlin.String origin=null
|
||||
$this: GET_VAR 'val obj: <root>.box.<no name provided> [val] declared in <root>.box' type=<root>.box.<no name provided> origin=null
|
||||
|
||||
Reference in New Issue
Block a user