Files
kotlin-fork/idea/testData/intentions/convertPropertyToFunction/delegatingProperty.kt
T
2015-11-06 01:12:09 +03:00

10 lines
147 B
Kotlin
Vendored

// WITH_RUNTIME
// IS_APPLICABLE: false
class A(val n: Int) {
val <caret>foo: Boolean by lazy { n > 1 }
}
fun test() {
val t = A(1).foo
}