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.
36 lines
638 B
Kotlin
Vendored
36 lines
638 B
Kotlin
Vendored
// IGNORE_ERRORS
|
|
// ERROR_POLICY: SYNTAX
|
|
|
|
// MODULE: lib
|
|
// FILE: t.kt
|
|
|
|
|
|
fun bar(aa: Any, bb: Any, cc: Any) {
|
|
<<;;;;;
|
|
d8as9d89as
|
|
??????? ====----
|
|
}
|
|
|
|
fun foo() {
|
|
bar(a(), b(), c())
|
|
<<<<<,,,,>>>>>
|
|
f()
|
|
}
|
|
|
|
fun a(): Any { storage += "a"; return storage }
|
|
fun b(): Any { storage += "b"; return storage }
|
|
fun c(): Any { storage += "c"; return storage }
|
|
fun f(): Any { storage += "FAIL"; return storage }
|
|
|
|
var storage = ""
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: b.kt
|
|
|
|
fun box(): String {
|
|
try {
|
|
foo()
|
|
} catch (e: IllegalStateException) {
|
|
return if (storage == "abc") "OK" else "FAIL ABC"
|
|
return "FAIL"
|
|
} |