Johannes Barop
12/12/2022, 9:26 PMList<SomeType>
as IrType
?
I tried backingField!!.type.originalKotlinType!!.arguments
, but I don't know how to get from a TypeProjection
to an IrType
...shikasd
12/12/2022, 9:44 PMJohannes Barop
12/12/2022, 9:52 PMarguments
. This is the helper I came up with
private val IrProperty.typeArguments: List<IrType>
get() {
val asSimpleType = backingField!!.type as IrSimpleType
return asSimpleType.arguments.map { it.typeOrNull!! }
}