Files
codeql/java/ql/test/kotlin/library-tests/inherited-callee/Test.kt

34 lines
351 B
Kotlin

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