mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Kotlin: Add a test that was failing dbcheck, and comment out the cause
This commit is contained in:
@@ -654,11 +654,14 @@ class X {
|
||||
})
|
||||
val kotlinResult = TypeResult(kotlinId, kotlinSignature)
|
||||
|
||||
/*
|
||||
TODO
|
||||
tw.getLabelFor<DbMethod>("@\"callable;{$id}.clone(){$id}\"") {
|
||||
tw.writeMethods(it, "clone", "clone()", javaResult.id, kotlinResult.id, javaResult.id, it)
|
||||
// TODO: modifiers
|
||||
// tw.writeHasModifier(clone, getModifierKey("public"))
|
||||
}
|
||||
*/
|
||||
|
||||
return TypeResults(javaResult, kotlinResult)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
| intList.kt:3:14:3:31 | listOf(...) | 0 | intList.kt:3:21:3:30 | ... |
|
||||
| test.kt:12:14:12:31 | listOf(...) | 0 | test.kt:12:21:12:30 | ... |
|
||||
| test.kt:13:5:13:34 | funWithOnlyVarArgs(...) | 0 | test.kt:13:24:13:33 | ... |
|
||||
| test.kt:14:5:14:50 | funWithArgsAndVarArgs(...) | 0 | test.kt:14:28:14:30 | foo |
|
||||
|
||||
5
java/ql/test/kotlin/library-tests/vararg/intList.kt
Normal file
5
java/ql/test/kotlin/library-tests/vararg/intList.kt
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
fun intListFun() {
|
||||
val xs = listOf(10, 11, 12)
|
||||
}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
| intList.kt:3:21:3:30 | ... | 0 | intList.kt:3:21:3:22 | 10 |
|
||||
| intList.kt:3:21:3:30 | ... | 1 | intList.kt:3:25:3:26 | 11 |
|
||||
| intList.kt:3:21:3:30 | ... | 2 | intList.kt:3:29:3:30 | 12 |
|
||||
| test.kt:12:21:12:30 | ... | 0 | test.kt:12:21:12:22 | 10 |
|
||||
| test.kt:12:21:12:30 | ... | 1 | test.kt:12:25:12:26 | 11 |
|
||||
| test.kt:12:21:12:30 | ... | 2 | test.kt:12:29:12:30 | 12 |
|
||||
|
||||
Reference in New Issue
Block a user