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 ab0d531 commit b949c67Copy full SHA for b949c67
lib/IRGen/Fulfillment.cpp
@@ -70,12 +70,12 @@ static bool isLeafTypeMetadata(CanType type) {
70
case TypeKind::Tuple:
71
return cast<TupleType>(type)->getNumElements() == 0;
72
73
- // Nominal types might have parents.
+ // Nominal types might have generic parents.
74
case TypeKind::Class:
75
case TypeKind::Enum:
76
case TypeKind::Protocol:
77
case TypeKind::Struct:
78
- return !cast<NominalType>(type)->getParent();
+ return !cast<NominalType>(type)->getDecl()->isGenericContext();
79
80
// Bound generic types have type arguments.
81
case TypeKind::BoundGenericClass:
0 commit comments