We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44f8b40 commit 350ad5dCopy full SHA for 350ad5d
lkql_checker/share/lkql/nested_paths.lkql
@@ -49,7 +49,7 @@ fun nested_paths(node) =
49
if_stmt.f_alternatives[1] == null
50
51
# Has an "else" part
52
- and if_stmt.f_else_part.f_stmts[1] != null
+ and if_stmt.f_else_part != null
53
54
and not has_last_breaking_stmt(node)
55
and has_last_breaking_stmt(if if_stmt.f_then_stmts == node
testsuite/tests/checks/nested_paths/paths.adb
@@ -93,4 +93,8 @@ begin
93
else
94
I := I + 1; -- NOFLAG
95
end if;
96
+
97
+ if Cond then
98
+ null; -- NOFLAG
99
+ end if;
100
end Paths;
0 commit comments