16 lines
210 B
Kotlin
Vendored
16 lines
210 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// IGNORE_BACKEND: JS_IR
|
|
// IGNORE_BACKEND: JS_IR_ES6
|
|
|
|
fun test1() {
|
|
val x by lazy { 42 }
|
|
println(x)
|
|
}
|
|
|
|
fun test2() {
|
|
var x by hashMapOf<String, Int>()
|
|
x = 0
|
|
x++
|
|
x += 1
|
|
}
|