Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 35ad8f3

Browse files
committed
Kotlin: Add a test for Kotlin and Java calling each other
Currently kotlin->java causes DB inconsistencies.
1 parent 1719b92 commit 35ad8f3

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Java {
2+
void javaFun() {
3+
new Kotlin().kotlinFun();
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Kotlin {
2+
fun kotlinFun() {
3+
// TODO: Java().javaFun();
4+
}
5+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Java.java:3:3:3:26 | kotlinFun(...) | java_and_kotlin.testproj/test.class.files/Kotlin.class:0:0:0:0 | kotlinFun |
2+
| Kotlin.kt:1:1:5:1 | <obinit>(...) | Kotlin.kt:1:1:5:1 | <obinit> |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import java
2+
3+
from MethodAccess ma, Method m
4+
where m = ma.getMethod()
5+
select ma, m

0 commit comments

Comments
 (0)