Nothing to inline diagnostic

This commit is contained in:
Mikhael Bogdanov
2013-11-19 15:02:36 +04:00
parent f7c62fe631
commit eb3edeb527
10 changed files with 72 additions and 8 deletions
@@ -0,0 +1,29 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NULLABLE_INLINE_PARAMETER
<!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)?) {
}<!>