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.
12 lines
227 B
Kotlin
Vendored
12 lines
227 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
fun testScalar(a: Any): IntArray {
|
|
if (a !is Int) return intArrayOf()
|
|
return intArrayOf(a)
|
|
}
|
|
|
|
fun testSpread(a: Any): IntArray {
|
|
if (a !is IntArray) return intArrayOf()
|
|
return intArrayOf(*a)
|
|
}
|