blob: 25e0f8ddf9c63691fb0cddaf659e5b7b99bb3723 [file]
// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: -UNUSED_EXPRESSION
inline public fun reg(converter: (Any) -> Any) {
converter("")
}
public inline fun register(converter: (Any) -> Any) {
reg(when(<!USAGE_IS_NOT_INLINABLE!>converter<!>) {
<!USELESS_IS_CHECK!>is (Any) -> Any<!> -> <!USAGE_IS_NOT_INLINABLE!>converter<!>
else -> <!USAGE_IS_NOT_INLINABLE!>converter<!>
})
}
/* GENERATED_FIR_TAGS: functionDeclaration, functionalType, inline, isExpression, smartcast, stringLiteral,
whenExpression, whenWithSubject */