mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Kotlin: Fix inherited-callee test
We can't define the same classes in Java and Kotlin.
This commit is contained in:
@@ -4,13 +4,13 @@ open class TestKt {
|
||||
|
||||
}
|
||||
|
||||
interface ParentIf {
|
||||
interface ParentIfK {
|
||||
|
||||
fun inheritedInterfaceMethodK()
|
||||
|
||||
}
|
||||
|
||||
interface ChildIf : ParentIf {
|
||||
interface ChildIfK : ParentIfK {
|
||||
|
||||
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class ChildKt : TestKt() {
|
||||
c.equals(c)
|
||||
c.hashCode()
|
||||
c.inheritMe()
|
||||
val c2: ParentIf? = null
|
||||
val c2: ParentIfK? = null
|
||||
c2?.inheritedInterfaceMethodK()
|
||||
|
||||
}
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
| Test.kt:24:7:24:15 | equals(...) | equals | Object |
|
||||
| Test.kt:25:7:25:16 | hashCode(...) | hashCode | Object |
|
||||
| Test.kt:26:7:26:17 | inheritMe(...) | inheritMe | TestKt |
|
||||
| Test.kt:28:9:28:35 | inheritedInterfaceMethodK(...) | inheritedInterfaceMethodK | ParentIf |
|
||||
| Test.kt:28:9:28:35 | inheritedInterfaceMethodK(...) | inheritedInterfaceMethodK | ParentIfK |
|
||||
|
||||
Reference in New Issue
Block a user