Support unbound callable function references in inliner

This commit is contained in:
Mikhael Bogdanov
2019-05-22 15:06:05 +02:00
parent 0b59d0b416
commit 3c093f321d
13 changed files with 326 additions and 16 deletions
@@ -484,4 +484,4 @@ fun IrClass.addFakeOverrides() {
}
fun IrValueParameter.isInlineParameter() =
!isNoinline && !type.isNullable() && type.isFunctionOrKFunction()
!isNoinline && !type.isNullable() && (type.isFunction() || type.isSuspendFunctionTypeOrSubtype())