Files
kotlin-fork/compiler/testData/ir/irText/declarations/localDelegatedProperties.kt
T
Vladimir Sukharev 3aa6c9e74d [K/N] Run irText tests for K1/Native
^KT-58240
2023-09-05 11:42:45 +00:00

20 lines
399 B
Kotlin
Vendored

// WITH_STDLIB
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// KT-61141: `println (message: kotlin.Any?)` instead of `println (message: kotlin.Int)`
// KT-61141: `kotlin.collections.HashMap` instead of `java.util.HashMap`
// IGNORE_BACKEND: NATIVE
fun test1() {
val x by lazy { 42 }
println(x)
}
fun test2() {
var x by hashMapOf<String, Int>()
x = 0
x++
x += 1
}