File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lkql_checker/share/lkql/kp
testsuite/tests/checks/KP-U310-012 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ fun kp_u310_012(node) =
1111 node is SubpSpec(f_subp_kind: SubpKindFunction)
1212 when node.p_return_type() is TypeDecl(p_full_view(): ret@TypeDecl)
1313 when is_unconstrained(ret)
14- and (node.parent. p_has_aspect("Post") or
14+ and (node.parent is BasicDecl( p_has_aspect("Post"): true ) or
1515 ret.p_has_aspect("Type_Invariant"))
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ package P is
1414 function Create return T_Array with Post => True; -- FLAG
1515 function No_Flag return T_Array; -- NOFLAG
1616
17+ type F_Access is access function (B : Boolean) return String;
18+
1719private
1820
1921 type T_Array2 is array (Positive range <>) of T
You can’t perform that action at this time.
0 commit comments