Files
kotlin-fork/compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.kt
T
Sergej Jaskiewicz 88b7f30867 [test] Use custom ignore directive for AbstractKlibJsTextTestCase tests
We've muted some irText tests on JS in the previous commits because
test expectations in some tests are different when targeting JS.

AbstractKlibJsTextTestCase tests use a different logic:
they compare the dump of the deserialized IR with the frontend-generated
IR, not with the expectations in text files, thus muted tests weren't
actually failing.

Here we introduce a temporary fix, namely
a separate // IGNORE directive for klib tests.

When klib tests are moved to the new test infrastructure, there will be
no need to do this.
2023-03-22 15:18:17 +00:00

25 lines
332 B
Kotlin
Vendored

// TARGET_FRONTEND: FIR
// FIR_IDENTICAL
// IGNORE_BACKEND_KLIB: JS_IR
class A {
val a: Number
private field = 1
val b: Number
internal field = a + 2
val c = 1
val d = c + 2
fun rest() {
val aI = A().a + 10
val bI = A().b + 20
}
}
fun test() {
val bA = A().b + 20
}