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

17 lines
267 B
Kotlin
Vendored

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