fd76a34277
This doesn't reduce the quality of tests, because the flags are still printed for declarations themselves. We only omit them in references. However, this makes the tests more compatible with non-JVM backends (see KT-58605), because flags of referenced stdlib declarations may differ among target platforms.
10 lines
120 B
Kotlin
Vendored
10 lines
120 B
Kotlin
Vendored
fun test1() {
|
|
throw Throwable()
|
|
}
|
|
|
|
fun testImplicitCast(a: Any) {
|
|
if (a is Throwable) {
|
|
throw a
|
|
}
|
|
}
|