[parcelize] Fix codegen for generic classes
Replace type arguments with star projection in static methods Fix IR function generation ^KT-42652 Fixed
This commit is contained in:
+2
-1
@@ -168,7 +168,8 @@ fun IrClass.addFunction(
|
||||
this.origin = origin
|
||||
}.apply {
|
||||
if (!isStatic) {
|
||||
dispatchReceiverParameter = parentAsClass.thisReceiver!!.copyTo(this)
|
||||
val thisReceiver = parentAsClass.thisReceiver!!
|
||||
dispatchReceiverParameter = thisReceiver.copyTo(this, type = thisReceiver.type)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user