mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Revert "Kotlin: Exclude captured variables from constant loop condition check"
This reverts commit 3e476f96bd.
This commit is contained in:
@@ -7,18 +7,4 @@ fun fn1() {
|
||||
c = false
|
||||
}
|
||||
}
|
||||
|
||||
var d = true
|
||||
while (d) { // FALSE NEGATIVE
|
||||
fn0 {
|
||||
println(d)
|
||||
}
|
||||
}
|
||||
|
||||
val e = true
|
||||
while (e) {
|
||||
fn0 {
|
||||
println(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user