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 36683a8 commit 21cc894Copy full SHA for 21cc894
lib/AST/ExistentialGeneralization.cpp
@@ -81,7 +81,7 @@ class Generalizer : public CanTypeVisitor<Generalizer, Type> {
81
private:
82
Type visitProtocolType(CanProtocolType type) {
83
// Simple protocol types have no sub-structure.
84
- assert(!type.getParent());
+ assert(!type.getParent() || !type.getParent()->isSpecialized());
85
return type;
86
}
87
0 commit comments