Kotlin: Report CFG dead end consistency issues on ErrorExpr

This commit is contained in:
Tamas Vajk
2022-12-13 15:51:20 +01:00
parent b8ef961498
commit 5cc2868857
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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 |