diff --git a/frontend/include/chpl/resolution/resolution-types.h b/frontend/include/chpl/resolution/resolution-types.h index d27983985630..b8a01cb17dcf 100644 --- a/frontend/include/chpl/resolution/resolution-types.h +++ b/frontend/include/chpl/resolution/resolution-types.h @@ -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 &&