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

10 lines
296 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
inline public fun reg(converter: (Any) -> Any, str: String) {
str
converter("")
}
public inline fun register(converter: (Any) -> Any) {
"123$<!USAGE_IS_NOT_INLINABLE!>converter<!>"
reg(converter, "123$<!USAGE_IS_NOT_INLINABLE!>converter<!>")
}