Extraction Engine: Support lazy properties and properties with initializer
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// WITH_RUNTIME
|
||||
// EXTRACTION_TARGET: lazy property
|
||||
|
||||
import kotlin.properties.Delegates
|
||||
|
||||
class A(val n: Int = 1) {
|
||||
val m: Int = 2
|
||||
|
||||
fun foo(): Int {
|
||||
return i
|
||||
}
|
||||
|
||||
private val i: Int by Delegates.lazy {
|
||||
m + n + 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user