mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
32 lines
633 B
Kotlin
32 lines
633 B
Kotlin
fun fn0() { throw java.io.IOException() }
|
|
|
|
fun fn1() {
|
|
try {
|
|
throw java.io.IOException()
|
|
} catch (e: java.io.FileNotFoundException) {
|
|
println(e)
|
|
} catch (e: java.io.IOException) {
|
|
println(e)
|
|
}
|
|
}
|
|
|
|
fun fn2() {
|
|
try {
|
|
fn0()
|
|
} catch (e: java.io.FileNotFoundException) {
|
|
println(e)
|
|
} catch (e: java.io.IOException) {
|
|
println(e)
|
|
}
|
|
}
|
|
|
|
fun fn3() {
|
|
try {
|
|
throw java.io.FileNotFoundException()
|
|
} catch (e: java.io.FileNotFoundException) {
|
|
println(e)
|
|
} catch (e: java.io.IOException) { // TODO: False negative
|
|
println(e)
|
|
}
|
|
}
|