[JS IR] Assert createdOn equals 0 for properties initialization fun for file

This commit is contained in:
Ilya Goncharov
2020-12-03 19:17:07 +03:00
parent 5be28520fc
commit 167e60b9fb
2 changed files with 17 additions and 2 deletions
@@ -1,12 +1,17 @@
// TARGET_BACKEND: JS_IR
// DONT_TARGET_EXACT_BACKEND: WASM
// PROPERTY_LAZY_INITIALIZATION
// KJS_WITH_FULL_RUNTIME
// FILE: A.kt
val a1 = "a".let {
it + "a"
}
val b1 by lazy {
"b1"
}
object A {
private val foo = "foo"
val foo2 = foo