IR: make IrTypeAlias.expandedType mutable
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user