IR: make IrTypeAlias.expandedType mutable

This commit is contained in:
Georgy Bronnikov
2020-09-03 16:26:55 +03:00
parent 78fc690f29
commit a3763e8276
5 changed files with 20 additions and 6 deletions
@@ -24,7 +24,7 @@ abstract class IrTypeAlias :
abstract override val descriptor: TypeAliasDescriptor
abstract val isActual: Boolean
abstract val expandedType: IrType
abstract var expandedType: IrType
override fun <R, D> accept(visitor: IrElementVisitor<R, D>, data: D): R =
visitor.visitTypeAlias(this, data)
@@ -43,7 +43,7 @@ class IrLazyTypeAlias(
}
}
override val expandedType: IrType by lazy {
override var expandedType: IrType by lazyVar {
withInitialIr {
typeTranslator.buildWithScope(this) {
descriptor.expandedType.toIrType()