Files
kotlin-fork/idea/testData/codeInsight/outOfBlock/InLambdaFunction.kt
T
2019-10-30 21:41:29 +01:00

10 lines
176 B
Kotlin
Vendored

// OUT_OF_CODE_BLOCK: FALSE
fun twice(s: String): String {
val repeatFun: String.(Int) -> String = { t -> this.repeat(<caret>) }
return repeatFun(s, 2)
}
// TYPE: t