added position strategy to NOTHING_TO_INLINE error

This commit is contained in:
Svetlana Isakova
2013-12-19 22:03:43 +04:00
parent cfb7bcb73b
commit c9f3f9ca1f
3 changed files with 17 additions and 17 deletions
@@ -1,29 +1,29 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -NULLABLE_INLINE_PARAMETER
<!NOTHING_TO_INLINE!>inline fun test() {
<!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 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)?)<!> {
}<!>
}
@@ -12,10 +12,10 @@ public inline fun <T> submitNoInline(noinline action: Function1<Int, Int>?, s: (
action?.invoke(10)
}
<!NOTHING_TO_INLINE!>public inline fun <T> <!NULLABLE_INLINE_PARAMETER!>Function1<Int, Int>?<!>.submit() {
<!NOTHING_TO_INLINE!>public inline fun <T> <!NULLABLE_INLINE_PARAMETER!>Function1<Int, Int>?<!>.submit()<!> {
}<!>
}
<!NOTHING_TO_INLINE!>public inline fun <T> submit(<!NULLABLE_INLINE_PARAMETER!>action: Function1<Int, Int>?<!>) {
<!NOTHING_TO_INLINE!>public inline fun <T> submit(<!NULLABLE_INLINE_PARAMETER!>action: Function1<Int, Int>?<!>)<!> {
}<!>
}