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

19 lines
319 B
Kotlin
Vendored

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