mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
25 lines
332 B
Kotlin
25 lines
332 B
Kotlin
fun fn0(f: Function0<Unit>) = f()
|
|
|
|
fun fn1() {
|
|
var c = true
|
|
while (c) { // TODO: false positive
|
|
fn0 {
|
|
c = false
|
|
}
|
|
}
|
|
|
|
var d = true
|
|
while (d) {
|
|
fn0 {
|
|
println(d)
|
|
}
|
|
}
|
|
|
|
val e = true
|
|
while (e) {
|
|
fn0 {
|
|
println(e)
|
|
}
|
|
}
|
|
}
|