mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
11 lines
344 B
Kotlin
Vendored
11 lines
344 B
Kotlin
Vendored
// !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<!>) {
|
|
is (Any) -> Any -> <!USAGE_IS_NOT_INLINABLE!>converter<!>
|
|
else -> <!USAGE_IS_NOT_INLINABLE!>converter<!>
|
|
})
|
|
} |