blob: 6ecfc3ac20fc6bb6e6b6358f5bf52be4f04677a7 [file] [log] [blame]
Vsevolod Tolstopyatov74bcc922018-05-03 20:07:54 +03001package cases.localClasses
2
3
4class L {
5 internal fun a(lambda: () -> Unit) = lambda()
6
7 @Suppress("NOTHING_TO_INLINE")
8 internal inline fun inlineLambda() {
9 a {
10 println("OK")
11 }
12 }
13}
14
15fun box() {
16 L().inlineLambda()
17}
18
19
20// TODO: inline lambda from stdlib