[FIR2IR] KT-57211: Support unsigned arrayOf-s in fir2ir

^KT-57211 Fixed

Merge-request: KT-MR-9294
Merged-by: Nikolay Lunyak <Nikolay.Lunyak@jetbrains.com>
This commit is contained in:
Nikolay Lunyak
2023-03-22 13:10:17 +00:00
committed by Space Team
parent a5e5e093c3
commit 505edb9746
5 changed files with 12 additions and 3 deletions
@@ -467,6 +467,10 @@ class IrBuiltInsOverFir(
}.toMap()
}
override val unsignedArraysElementTypes: Map<IrClassSymbol, IrType?> by lazy {
unsignedTypesToUnsignedArrays.map { (k,v) -> v to referenceClassByClassId(k.classId)?.owner?.defaultType }.toMap()
}
override fun getKPropertyClass(mutable: Boolean, n: Int): IrClassSymbol = when (n) {
0 -> if (mutable) kMutableProperty0Class else kProperty0Class
1 -> if (mutable) kMutableProperty1Class else kProperty1Class