JVM_IR: Copy annotations to suspend function views.

This commit is contained in:
Mads Ager
2019-11-26 12:46:41 +01:00
committed by Ilmir Usmanov
parent 3d1061ee3c
commit 8d5e5210a6
3 changed files with 3 additions and 2 deletions
@@ -152,6 +152,9 @@ private fun IrFunction.suspendFunctionView(context: JvmBackendContext): IrFuncti
).also {
descriptor.bind(it)
it.parent = parent
it.annotations.addAll(annotations)
it.copyTypeParametersFrom(this)
it.dispatchReceiverParameter = dispatchReceiverParameter?.copyTo(it)
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_REFLECT
// IGNORE_BACKEND: JS, NATIVE
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
//ALLOW_AST_ACCESS
package test