mirror of
https://github.com/github/codeql.git
synced 2026-04-08 00:24:03 +02:00
12 lines
221 B
Kotlin
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
|
|
}
|
|
}
|