Skip to content

Commit

Permalink
Add Anna's assertion recommendation
Browse files Browse the repository at this point in the history
Signed-off-by: Danila Fedorin <[email protected]>
  • Loading branch information
DanilaFe committed May 15, 2024
1 parent 8c733f6 commit ae448e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/include/chpl/resolution/resolution-types.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ class UntypedFnSignature {
defaultKind(defaultKind),
decl(decl),
isVarArgs(isVarArgs)
{ }
{
CHPL_ASSERT(name != USTR("this") || defaultKind == DK_NO_DEFAULT);
}

bool operator==(const FormalDetail& other) const {
return name == other.name &&
Expand Down

0 comments on commit ae448e0

Please sign in to comment.