Files
kotlin-fork/idea/testData/inspectionsLocal/unnecessaryVariable/copyOfValInLambda.kt
T
2020-05-27 02:38:42 +09:00

17 lines
287 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
fun findCredentials() = 1
fun println(i: Int) {}
fun test() {
val data = run {
val credentials = findCredentials()
object {
val <caret>foundCredentials = credentials
}
}
println(data.foundCredentials)
}