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.
11 lines
127 B
Kotlin
Vendored
11 lines
127 B
Kotlin
Vendored
fun test() {
|
|
val x = intArrayOf(1, 2, 3)
|
|
x[1] = 0
|
|
}
|
|
|
|
fun foo() = 1
|
|
|
|
fun test2() {
|
|
intArrayOf(1, 2, 3)[foo()] = 1
|
|
}
|