Files
kotlin-fork/idea/testData/refactoring/introduceProperty/extractLazyToFile.kt.after
T
2015-03-04 23:06:07 +03:00

14 lines
188 B
Plaintext
Vendored

// WITH_RUNTIME
// EXTRACTION_TARGET: lazy property
import kotlin.properties.Delegates
val n: Int = 1
private val i: Int by Delegates.lazy {
n + 1
}
fun foo(): Int {
return i
}