More proper code to check if lambda is inlined. Parameter of inline function can be annotated with "noInline".

This commit is contained in:
Evgeny Gerashchenko
2015-04-07 19:56:44 +03:00
parent d24d750d34
commit 015da2f8ca
5 changed files with 42 additions and 6 deletions
@@ -2,4 +2,13 @@ fun f(a: Int) {
run {
<lineMarker>f</lineMarker>(a - 1)
}
}
}
fun ff(a: Int) {
run1 {
ff(a - 1)
}
}
inline fun <T> run1(noinline f: () -> T): T { }