[FIR] Add NOTHING_TO_INLINE diagnostic
This commit is contained in:
committed by
teamcityserver
parent
28344c8530
commit
015c2d1875
+2
-2
@@ -2,8 +2,8 @@
|
||||
// SKIP_TXT
|
||||
inline fun foo1(x: suspend () -> Unit) {}
|
||||
inline fun foo2(crossinline x: suspend () -> Unit) {}
|
||||
inline fun foo3(noinline x: suspend () -> Unit) {}
|
||||
inline fun foo4(<!INCOMPATIBLE_MODIFIERS!>noinline<!> <!INCOMPATIBLE_MODIFIERS!>crossinline<!> x: suspend () -> Unit) {}
|
||||
<!NOTHING_TO_INLINE!>inline<!> fun foo3(noinline x: suspend () -> Unit) {}
|
||||
<!NOTHING_TO_INLINE!>inline<!> fun foo4(<!INCOMPATIBLE_MODIFIERS!>noinline<!> <!INCOMPATIBLE_MODIFIERS!>crossinline<!> x: suspend () -> Unit) {}
|
||||
|
||||
suspend inline fun bar1(x: suspend () -> Unit) {}
|
||||
suspend inline fun bar2(crossinline x: suspend () -> Unit) {}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import kotlin.jvm.*
|
||||
|
||||
abstract class C {
|
||||
inline external fun foo()
|
||||
<!NOTHING_TO_INLINE!>inline<!> external fun foo()
|
||||
}
|
||||
|
||||
fun test() {
|
||||
abstract class Local {
|
||||
inline external fun foo()
|
||||
<!NOTHING_TO_INLINE!>inline<!> external fun foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user