martmists
11/15/2025, 10:44 PMnull.INSTANCE, what could be the cause of this? Sample snippet where I pass a ctor reference:
val result = irCall(apply).apply {
typeArguments[0] = klass.defaultType
dispatchReceiver = product
arguments.addAll(1,
listOf(
builder,
IrFunctionReferenceImpl(
klass.startOffset,
klass.endOffset,
pluginContext.irBuiltIns.functionN(ctor.nonDispatchParameters.size).typeWith(*ctor.nonDispatchParameters.map { it.type }.toTypedArray(), klass.defaultType),
ctor.symbol,
0,
)
)
)
}