[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:
Andrey Zinovyev
2021-02-04 15:11:51 +03:00
committed by GitHub
parent ca02573d1e
commit 95140f35f8
10 changed files with 204 additions and 3 deletions
@@ -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)
}
}