TESTS: new inline tests added
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user