[K/N and WASM] Internalize NoWhenBranchMatchedException and UninitializedPropertyAccessException

As a part of efforts to stabilize Native stdlib.

Merge-request: KT-MR-9531
Merged-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-10 21:10:51 +00:00
committed by Space Team
parent 85450c93a6
commit b65a68ca0d
15 changed files with 34 additions and 6 deletions
@@ -2,6 +2,8 @@
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +InlineLateinit
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
OPTIONAL_JVM_INLINE_ANNOTATION
value class IC1(val x: String)
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
fun box(): String {
lateinit var str: String
try {
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun runNoInline(f: () -> Unit) = f()
@@ -1,6 +1,8 @@
// WITH_STDLIB
// WASM_MUTE_REASON: REFLECTION
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun runNoInline(f: () -> Unit) = f()
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun box(): String {
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun box(): String {
@@ -1,6 +1,8 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun box(): String {
@@ -10,6 +10,8 @@ object C {
}
// FILE: test.kt
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
fun box(): String {
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
lateinit var str: String
@@ -1,5 +1,7 @@
// WITH_STDLIB
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
import kotlin.UninitializedPropertyAccessException
lateinit var str: String