Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dyno: check return types when validating interface constraints #26471

Merged
merged 12 commits into from
Jan 17, 2025
5 changes: 5 additions & 0 deletions frontend/include/chpl/types/BasicClassType.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class BasicClassType final : public ManageableType {

const Type* substitute(Context* context,
const PlaceholderMap& subs) const override {
if (!parentType_) {
CHPL_ASSERT(name() == USTR("RootClass"));
return this;
}

return get(context, id(), name(),
Type::substitute(context, parentType_, subs),
Type::substitute(context, (const BasicClassType*) instantiatedFrom_, subs),
Expand Down
Loading
Loading