Files
kotlin-fork/compiler/testData/resolvedCalls/resolve/mostSpecificWithLambda.kt
T
Svetlana Isakova fb4c256d08 Added tests for choosing 'most specific' resolution candidate
Fixed test (while resolve with library on android): 'run' resolves to library function
2014-07-30 17:07:10 +04:00

7 lines
87 B
Kotlin

fun foo() {
<caret>bar { }
}
fun bar(a: Any) = a
fun <T> bar(f: () -> T): T = f()