mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01: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
|
|
}
|
|
}
|