Files
codeql/java/ql/test-kotlin/library-tests/arrays/arrayIterators.kt
Anders Fugmann f458cd60ca unify Kotlin test suites: rename test-kotlin2 to test-kotlin
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>
2026-07-09 15:59:10 +02:00

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()
}