Skip to content

Commit 21cc894

Browse files
committed
AST: Allow nested protocol types in ExistentialGeneralization
1 parent 36683a8 commit 21cc894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ExistentialGeneralization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Generalizer : public CanTypeVisitor<Generalizer, Type> {
8181
private:
8282
Type visitProtocolType(CanProtocolType type) {
8383
// Simple protocol types have no sub-structure.
84-
assert(!type.getParent());
84+
assert(!type.getParent() || !type.getParent()->isSpecialized());
8585
return type;
8686
}
8787

0 commit comments

Comments
 (0)