[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:
committed by
Space Team
parent
85450c93a6
commit
b65a68ca0d
@@ -20,13 +20,15 @@ class X {
|
||||
// MODULE: mainLib(lib)
|
||||
// FILE: mainLib.kt
|
||||
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||
|
||||
val x = X()
|
||||
|
||||
fun lib(): String {
|
||||
|
||||
val a = try {
|
||||
qux
|
||||
} catch (e: UninitializedPropertyAccessException) {
|
||||
} catch (e: UninitializedPropertyAccessException) {
|
||||
"uninitiaized"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user