Files
kotlin-fork/compiler/testData/ir/irText/fakeOverrides/gettersetter/substitutionOverrideForGetterSetter.fir.kt.txt
anzhela.sukhanova 82255d5ee8 [Test] KT-61360: add tests for the IrFakeOverrideBuilder
Add tests for fake overrides with focus on java interoperability

Co-authored-by: Aleksandra Arsenteva <aleksandra.arsenteva@jetbrains.com>
2024-03-04 16:21:02 +00:00

33 lines
507 B
Kotlin
Vendored

class A : Java1<Int> {
constructor() /* primary */ {
super/*Java1*/<Int>()
/* <init>() */
}
}
class B : Java1<Boolean> {
constructor() /* primary */ {
super/*Java1*/<Boolean>()
/* <init>() */
}
}
fun test(a: A, b: B) {
a.getA() /*~> Unit */
a.setA(t = null)
a.isB() /*~> Unit */
a.setB(t = null)
a.getC() /*~> Unit */
a.setD(t = null)
b.getA() /*~> Unit */
b.setA(t = true)
b.isB() /*~> Unit */
b.setB(t = true)
b.getC() /*~> Unit */
b.setD(t = true)
}