Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/nothingToInline.kt
T
Andrey Breslav 851fbbc937 Test data fixed
2014-06-19 22:10:50 +04:00

29 lines
573 B
Kotlin

// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NULLABLE_INLINE_PARAMETER -CONFLICTING_JVM_DECLARATIONS
<!NOTHING_TO_INLINE!>inline fun test()<!> {
}
inline fun test2(s : (Int) -> Int) {
}
<!NOTHING_TO_INLINE!>inline fun test3(noinline s : (Int) -> Int)<!> {
}
<!NOTHING_TO_INLINE!>inline fun test4(noinline s : Int.() -> Int)<!> {
}
<!NOTHING_TO_INLINE!>inline fun Function1<Int, Int>?.test5()<!> {
}
<!NOTHING_TO_INLINE!>inline fun Function1<Int, Int>?.test6()<!> {
}
<!NOTHING_TO_INLINE!>inline fun test2(s : ((Int) -> Int)?)<!> {
}