mirror of
https://github.com/github/codeql.git
synced 2026-07-10 05:55:32 +02:00
Rename java/ql/test-kotlin2 to java/ql/test-kotlin (codeql/java-kotlin-tests) and delete java/ql/test-kotlin1. The unified suite is the K2 test suite (test-kotlin2) with expected files already updated by the preceding extractor commits to converge K1 and K2 output. The suite runs in both language modes via the test runner: * K1 mode — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2 unset → -language-version 1.9 * K2 mode — CODEQL_KOTLIN_LEGACY_TEST_EXTRACTION_KOTLIN2=true → -language-version 2.0 Update CODEOWNERS and labeler.yml to reference test-kotlin. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
214 B
Kotlin
14 lines
214 B
Kotlin
fun test(
|
|
a: Array<Int>,
|
|
b: IntArray,
|
|
c: BooleanArray) {
|
|
|
|
for (i in a) { }
|
|
for (i in b) { }
|
|
for (i in c) { }
|
|
|
|
val i1 = a.iterator()
|
|
val i2 = b.iterator()
|
|
val i3 = c.iterator()
|
|
}
|