mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
34 lines
355 B
Kotlin
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()
|
|
|
|
}
|
|
|
|
}
|
|
|