We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d30645 commit 6a4f7ffCopy full SHA for 6a4f7ff
lib/AST/TypeCheckRequests.cpp
@@ -1074,7 +1074,9 @@ void InterfaceTypeRequest::cacheResult(Type type) const {
1074
if (type) {
1075
assert(!type->hasTypeVariable() && "Type variable in interface type");
1076
assert(!type->is<InOutType>() && "Interface type must be materializable");
1077
- assert(!type->hasArchetype() && "Archetype in interface type");
+ assert(!type->hasPrimaryArchetype() && "Archetype in interface type");
1078
+ assert(decl->getDeclContext()->isLocalContext() || !type->hasLocalArchetype() &&
1079
+ "Local archetype in interface type of non-local declaration");
1080
}
1081
decl->TypeAndAccess.setPointer(type);
1082
0 commit comments