Skip to content

Commit

Permalink
Don't add invalid generic class specializations to internal specializ…
Browse files Browse the repository at this point in the history
…ation map
  • Loading branch information
MikePopoloski committed May 19, 2024
1 parent 2cb1283 commit ff952d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/ast/symbols/ClassSymbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,10 @@ const Type* GenericClassDefSymbol::getSpecializationImpl(
specializeFunc(comp, *classType, instanceLoc);
else
classType->populate(*scope, getSyntax()->as<ClassDeclarationSyntax>());
specMap.emplace(key, classType);

if (!forceInvalidParams)
specMap.emplace(key, classType);

return classType;
}

Expand Down

0 comments on commit ff952d5

Please sign in to comment.