[FIR2IR] Load builtin classes instead of creating them on the fly

This change uncovered KT-61282, which was hidden because of incorrect
  module fragments used as parent for builtin classes
This commit is contained in:
Dmitriy Novozhilov
2023-08-17 11:24:39 +03:00
committed by Space Team
parent f95ed2b588
commit 3f2e996803
9 changed files with 723 additions and 1225 deletions
@@ -169,7 +169,7 @@ FILE fqName:<root> fileName:/enumWithMultipleCtors.kt
VALUE_PARAMETER name:x index:0 type:kotlin.Int
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'private constructor <init> (arg: kotlin.String) declared in <root>.A'
arg: CALL 'public final fun toString (): kotlin.String declared in kotlin.Int' type=kotlin.String origin=null
arg: CALL 'public open fun toString (): kotlin.String declared in kotlin.Int' type=kotlin.String origin=null
$this: GET_VAR 'x: kotlin.Int declared in <root>.A.<init>' type=kotlin.Int origin=null
CALL 'public final fun <set-prop3> (<set-?>: kotlin.String): kotlin.Unit declared in <root>.A' type=kotlin.Unit origin=EQ
$this: GET_VAR '<this>: <root>.A declared in <root>.A' type=<root>.A origin=null