Minor test improvement
This commit is contained in:
committed by
KonstantinAnisimov
parent
a2e8c7f638
commit
449b4cd4b1
@@ -1,13 +1,18 @@
|
||||
inline fun foo(block: () -> Unit) {
|
||||
block()
|
||||
inline fun foo2(block2: () -> Int) : Int {
|
||||
println("foo2")
|
||||
return block2()
|
||||
}
|
||||
|
||||
fun bar(block: () -> Unit) {
|
||||
foo(block)
|
||||
inline fun foo1(block1: () -> Int) : Int {
|
||||
println("foo1")
|
||||
return foo2(block1)
|
||||
}
|
||||
|
||||
fun bar(block: () -> Int) : Int {
|
||||
println("bar")
|
||||
return foo1(block)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
bar {
|
||||
println("OK")
|
||||
}
|
||||
}
|
||||
println(bar { 33 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user