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.
18 lines
220 B
Kotlin
Vendored
18 lines
220 B
Kotlin
Vendored
fun foo(): IntArray = intArrayOf(1, 2, 3)
|
|
fun bar() = 42
|
|
|
|
class C(val x: IntArray)
|
|
|
|
fun testVariable() {
|
|
var x = foo()
|
|
x[0] += 1
|
|
}
|
|
|
|
fun testCall() {
|
|
foo()[bar()] *= 2
|
|
}
|
|
|
|
fun testMember(c: C) {
|
|
c.x[0]++
|
|
}
|