Skip to content

Commit 9835a6f

Browse files
committed
AST: Assert that checkConformance() receives a fully-substituted type
1 parent 3bd5687 commit 9835a6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/ConformanceLookup.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ LookupConformanceInModuleRequest::evaluate(
728728
ProtocolConformanceRef
729729
ModuleDecl::checkConformance(Type type, ProtocolDecl *proto,
730730
bool allowMissing) {
731+
assert(!type->hasTypeParameter());
732+
731733
auto lookupResult = lookupConformance(type, proto, allowMissing);
732734
if (lookupResult.isInvalid()) {
733735
return ProtocolConformanceRef::forInvalid();

0 commit comments

Comments
 (0)