Improve inline diagnostics, report "nothing to inline" on the modifier
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user