32c3f85679
This checker doesn't support `@PublishedAPI` yet, so some BB tests for it were muted. #KT-46270
18 lines
596 B
Kotlin
Vendored
18 lines
596 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !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) {}
|