Minor: Use kotlin.lazy instead of kotlin.Delegates.lazy in KtPsiFactory.CallableBuilder
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
// WITH_RUNTIME
|
||||
// EXTRACTION_TARGET: lazy property
|
||||
|
||||
val n: Int = 1
|
||||
|
||||
private val i: Int by Delegates.lazy {
|
||||
private val i: Int by lazy {
|
||||
n + 1
|
||||
}
|
||||
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user