982d10d127
This is needed because now these tests use new test infrastructure and here, after frontend facade, there is error check. We need to disable such check in these tests.
26 lines
371 B
Kotlin
Vendored
26 lines
371 B
Kotlin
Vendored
// IGNORE_ERRORS
|
|
// ERROR_POLICY: SEMANTIC
|
|
|
|
// MODULE: lib
|
|
// FILE: t.kt
|
|
|
|
fun <reified T> bar(t: T) = t
|
|
|
|
fun <reified T> qux() = T::class
|
|
|
|
fun foo(): String {
|
|
return bar<String>("OK")
|
|
}
|
|
|
|
fun dec() { qux() }
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: b.kt
|
|
|
|
fun box(): String {
|
|
try {
|
|
dec()
|
|
} catch (e: Throwable /*js ReferenceError*/) {
|
|
return foo()
|
|
}
|
|
} |