Files
kotlin-fork/compiler/testData/ir/irText/fakeOverrides/methodmodifiers/intersectionKotlinModifiersOverride.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

58 lines
674 B
Kotlin
Vendored

open class A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
inline fun foo() {
}
open external fun foo2()
open suspend fun foo3() {
}
inline fun <reified T : Any?> foo4(t: T) {
}
}
abstract class B : A, Java1 {
constructor() /* primary */ {
super/*A*/()
/* <init>() */
}
}
class C : A, Java1 {
constructor() /* primary */ {
super/*A*/()
/* <init>() */
}
override fun foo2() {
}
override suspend fun foo3() {
}
override fun foo4() {
}
}
suspend fun test(b: B, c: C) {
b.foo()
b.foo2()
b.foo3()
b.foo4<Int>(t = 1)
c.foo()
c.foo2()
c.foo3()
c.foo4<String>(t = "")
}