Files
codeql/java/ql/test-kotlin2/query-tests/UnderscoreIdentifier/Test.kt
2023-11-17 14:07:13 +00:00

12 lines
221 B
Kotlin

fun fn() {
try {
val l = listOf(1, 2, 3)
l.forEachIndexed { index, _ -> println(index) }
val p = Pair(1, 2)
val (first, _) = p
} catch (_: Exception) {
// expected
}
}