Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/assignment.fir.kt
T

14 lines
357 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE
inline fun inlineFunWithInvoke(s: (p: Int) -> Unit, ext: Int.(p: Int) -> Unit) {
var d = s
d = s
var e = ext
e = ext
}
inline fun Function1<Int, Unit>.inlineExt() {
var d = this
d = this
}