Kotlin: Fix inherited-callee test

We can't define the same classes in Java and Kotlin.
This commit is contained in:
Ian Lynagh
2022-10-12 13:45:21 +01:00
parent b31a721929
commit 9dc933cfc8
2 changed files with 4 additions and 4 deletions

View File

@@ -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()
}

View File

@@ -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 |