Files
kotlin-fork/idea/testData/intentions/specifyExplicitLambdaSignature/destructuring.kt
T
2017-04-19 13:12:53 +03:00

7 lines
221 B
Kotlin
Vendored

data class Declaration(val x: Int, val y: Int) {
fun lambdaType(p: Declaration, f: (Declaration) -> Int) = f(p)
}
fun call(declaration: Declaration) {
declaration.lambdaType(declaration) {<caret> (x, y) -> 11 }
}