Files
kotlin-fork/idea/idea-completion/testData/weighers/basic/LambdaSignature.kt
T
2019-05-06 13:59:26 +03:00

11 lines
233 B
Kotlin
Vendored

// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun <R> String.fold(initial: R, operation: (acc: R, Char) -> R): R = TODO()
fun foo(p: Int) {
"abc".fold(1) { <caret> }
}
// ORDER: "acc, c ->"
// ORDER: "acc: Int, c: Char ->"