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
@@ -2,6 +2,6 @@ inline fun <R> onlyLocal(p: () -> R) {
inlineAll(<!USAGE_IS_NOT_INLINABLE!>p<!>)
}
<!NOTHING_TO_INLINE!>inline fun <R> inlineAll(noinline p: () -> R)<!> {
<!NOTHING_TO_INLINE!>inline<!> fun <R> inlineAll(noinline p: () -> R) {
p()
}