Merge pull request #11675 from tamasvajk/kotlin-error-expr-consistency

Kotlin: Report CFG dead end consistency issues on `ErrorExpr`
This commit is contained in:
Tamás Vajk
2022-12-13 20:22:47 +01:00
committed by GitHub
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 |