505dc61611
#KT-9574 Fixed
16 lines
578 B
Kotlin
Vendored
16 lines
578 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NOTHING_TO_INLINE
|
|
|
|
inline fun inlineFun(s: (p: Int) -> Unit, noinline b: (p: Int) -> Unit) {
|
|
subInline(<!USAGE_IS_NOT_INLINABLE!>s<!>, b)
|
|
subNoInline(<!USAGE_IS_NOT_INLINABLE!>s<!>, b)
|
|
}
|
|
|
|
inline fun Function1<Int, Unit>.inlineExt(s: (p: Int) -> Unit, noinline b: (p: Int) -> Unit) {
|
|
subInline(this, <!USAGE_IS_NOT_INLINABLE!>s<!>, b)
|
|
subNoInline(this, <!USAGE_IS_NOT_INLINABLE!>s<!>, b)
|
|
}
|
|
|
|
|
|
inline fun subInline(vararg s: (p: Int) -> Unit) {}
|
|
|
|
fun subNoInline(vararg s: (p: Int) -> Unit) {} |