Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/inLambda.kt
T
2019-05-06 13:59:24 +03:00

8 lines
154 B
Kotlin
Vendored

// "Create function 'foo'" "true"
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun <T> run(f: () -> T) = f()
fun test() {
run { <caret>foo() }
}