Files
kotlin/compiler/testData/diagnostics/tests/inline/isCheck.kt
2015-10-22 17:20:57 +03:00

10 lines
319 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
inline public fun reg(converter: (Any) -> Any, flag: Boolean) {
flag
converter("")
}
public inline fun register(converter: (Any) -> Any) {
<!USAGE_IS_NOT_INLINABLE!>converter<!> is (Any) -> Any
reg(converter, <!USAGE_IS_NOT_INLINABLE!>converter<!> is (Any) -> Any)
}