mirror of
https://github.com/github/codeql.git
synced 2025-12-23 12:16:33 +01:00
34 lines
351 B
Kotlin
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()
|
|
|
|
}
|
|
|
|
}
|
|
|