Skip to content

Commit 9dc933c

Browse files
committed
Kotlin: Fix inherited-callee test
We can't define the same classes in Java and Kotlin.
1 parent b31a721 commit 9dc933c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ open class TestKt {
44

55
}
66

7-
interface ParentIf {
7+
interface ParentIfK {
88

99
fun inheritedInterfaceMethodK()
1010

1111
}
1212

13-
interface ChildIf : ParentIf {
13+
interface ChildIfK : ParentIfK {
1414

1515

1616
}
@@ -24,7 +24,7 @@ class ChildKt : TestKt() {
2424
c.equals(c)
2525
c.hashCode()
2626
c.inheritMe()
27-
val c2: ParentIf? = null
27+
val c2: ParentIfK? = null
2828
c2?.inheritedInterfaceMethodK()
2929

3030
}

java/ql/test/kotlin/library-tests/inherited-callee/test.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
| Test.kt:24:7:24:15 | equals(...) | equals | Object |
88
| Test.kt:25:7:25:16 | hashCode(...) | hashCode | Object |
99
| Test.kt:26:7:26:17 | inheritMe(...) | inheritMe | TestKt |
10-
| Test.kt:28:9:28:35 | inheritedInterfaceMethodK(...) | inheritedInterfaceMethodK | ParentIf |
10+
| Test.kt:28:9:28:35 | inheritedInterfaceMethodK(...) | inheritedInterfaceMethodK | ParentIfK |

0 commit comments

Comments
 (0)