mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Kotlin: Report CFG dead end consistency issues on ErrorExpr
This commit is contained in:
@@ -53,8 +53,6 @@ predicate shouldBeDeadEnd(ControlFlowNode n) {
|
||||
not exists(n.getFile().getRelativePath()) // TODO
|
||||
or
|
||||
n = any(ConstCase c).getValue(_) // TODO
|
||||
or
|
||||
n instanceof ErrorExpr // TODO
|
||||
}
|
||||
|
||||
from ControlFlowNode n, string s
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
| exprs.kt:278:52:278:66 | <error expr> | ErrorExpr | unexpected dead end |
|
||||
| exprs.kt:278:52:278:66 | { ... } | BlockStmt | unexpected dead end |
|
||||
|
||||
Reference in New Issue
Block a user