mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Kotlin: Move tests from test/kotlin to test-kotlin1
Matches test-kotlin2
This commit is contained in:
23
java/ql/test-kotlin1/library-tests/java_and_kotlin/Java.java
Normal file
23
java/ql/test-kotlin1/library-tests/java_and_kotlin/Java.java
Normal file
@@ -0,0 +1,23 @@
|
||||
import kotlin.coroutines.Continuation;
|
||||
|
||||
public class Java {
|
||||
void javaFun() {
|
||||
new Kotlin().kotlinFun();
|
||||
}
|
||||
|
||||
public class Djava extends Base {
|
||||
@Override
|
||||
public String fn0(int x) {
|
||||
return super.fn0(x);
|
||||
}
|
||||
|
||||
/*
|
||||
// Java interop disabled as it currently doesn't work (no symbol fn1(int, Completion<...>) gets created)
|
||||
// TODO: re-enable this test once a correct function signature is extracted
|
||||
@Override
|
||||
public Object fn1(int x, Continuation<? super String> $completion) {
|
||||
return super.fn1(x, $completion);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user