Files
codeql/java/ql/test-kotlin1/library-tests/inherited-callee/Test.kt
2023-11-21 15:28:12 +00:00

34 lines
355 B
Kotlin

open class TestKt {
fun inheritMe() { }
}
interface ParentIfK {
fun inheritedInterfaceMethodK()
}
interface ChildIfK : ParentIfK {
}
class ChildKt : TestKt() {
fun user() {
val c = ChildKt()
c.toString()
c.equals(c)
c.hashCode()
c.inheritMe()
val c2: ParentIfK? = null
c2?.inheritedInterfaceMethodK()
}
}