Improve inline diagnostics, report "nothing to inline" on the modifier

This commit is contained in:
Alexander Udalov
2015-09-14 13:02:12 +03:00
parent a946f787bc
commit b4470de713
9 changed files with 27 additions and 22 deletions
@@ -1,6 +1,6 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NULLABLE_INLINE_PARAMETER -CONFLICTING_JVM_DECLARATIONS
<!NOTHING_TO_INLINE!>inline fun test()<!> {
<!NOTHING_TO_INLINE!>inline<!> fun test() {
}
@@ -8,22 +8,22 @@ inline fun test2(s : (Int) -> Int) {
}
<!NOTHING_TO_INLINE!>inline fun test3(noinline 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 test4(noinline s : Int.() -> Int) {
}
<!NOTHING_TO_INLINE!>inline fun Function1<Int, Int>?.test5()<!> {
<!NOTHING_TO_INLINE!>inline<!> fun Function1<Int, Int>?.test5() {
}
<!NOTHING_TO_INLINE!>inline fun Function1<Int, Int>?.test6()<!> {
<!NOTHING_TO_INLINE!>inline<!> fun Function1<Int, Int>?.test6() {
}
<!NOTHING_TO_INLINE!>inline fun test2(s : ((Int) -> Int)?)<!> {
<!NOTHING_TO_INLINE!>inline<!> fun test2(s : ((Int) -> Int)?) {
}