Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/simpleLazy.kt
T
2020-03-19 09:51:01 +03:00

17 lines
234 B
Kotlin
Vendored

//val x = lazy { "Hello" }.getValue(null, throw null)
val x by lazy { "Hello" }
fun foo() {
x.length
val y by lazy { "Bye" }
y.length
}
class Some {
val z by lazy { "Some" }
fun foo() {
z.length
}
}