TESTS: new inline tests added

This commit is contained in:
Konstantin Anisimov
2017-01-19 11:40:18 +07:00
parent 150d0f6cd5
commit 6a1745e8ac
@@ -0,0 +1,15 @@
//@Suppress("NOTHING_TO_INLINE")
//inline fun foo(body: () -> Unit) {
fun foo(body: () -> Unit) {
body()
}
fun bar() {
foo {
println("hello")
}
}
fun main(args: Array<String>) {
bar()
}