mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #75647 from slavapestov/fix-issue-74858
Sema: Fix crash with SpecializeExpr around something that's not a type
This commit is contained in:
@@ -13980,6 +13980,8 @@ ConstraintSystem::simplifyExplicitGenericArgumentsConstraint(
|
||||
decl = bound->getDecl();
|
||||
for (auto argType : bound->getDirectGenericArgs()) {
|
||||
auto *typeVar = argType->getAs<TypeVariableType>();
|
||||
if (!typeVar)
|
||||
return SolutionKind::Error;
|
||||
auto *genericParam = typeVar->getImpl().getGenericParameter();
|
||||
openedTypes.push_back({genericParam, typeVar});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user