blob: 53d7e929a0f878d68eb810a2609e1e4e04ed89b5 [file]
// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: -UNCHECKED_CAST -USELESS_CAST
inline public fun reg(convertFunc: (Any) -> Any) {
convertFunc("")
}
public inline fun <reified T : Any, reified R : Any> register(converter: (T) -> R) {
<!USAGE_IS_NOT_INLINABLE!>converter<!> as (Any) -> Any
reg(<!USAGE_IS_NOT_INLINABLE!>converter<!> as (Any) -> Any)
}
/* GENERATED_FIR_TAGS: asExpression, functionDeclaration, functionalType, inline, intersectionType, reified, smartcast,
stringLiteral, typeConstraint, typeParameter */