Minor: Use kotlin.lazy instead of kotlin.Delegates.lazy in KtPsiFactory.CallableBuilder

This commit is contained in:
Alexey Sedunov
2015-10-30 18:21:07 +03:00
parent 5e223927ea
commit 520e90acf1
5 changed files with 6 additions and 14 deletions
@@ -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
}
}