[JS IR BE] lateinit support

* Functions with IrExpressionBody are lowered to IrBlockBody
* Implemented throwUninitializedPropertyAccessException function
This commit is contained in:
Anton Bannykh
2018-09-20 18:09:26 +03:00
parent beaf6df8c5
commit 8e347f9f39
21 changed files with 25 additions and 34 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
public class A {
fun setMyStr() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
public class A {
fun getMyStr(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
private lateinit var str: String
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
public lateinit var str: String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface Intf {
val str: String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
interface Intf {
val str: String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class My {
lateinit var x: String
private set
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class My {
lateinit var x: String
private set
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
open class A {
lateinit var x: String
private set
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
public lateinit var str: String
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
// WITH_RUNTIME
// FILE: lateinit.kt
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
// FILE: lateinit.kt
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
lateinit var ok: String
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
// WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.2
// WITH_RUNTIME