mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85487 from swiftlang/jepa-main4
AST: Properly disallow isa/cast/dyn_cast on `Type`
This commit is contained in:
@@ -9972,7 +9972,7 @@ ConstraintSystem::matchPackElementType(Type elementType, Type patternType,
|
||||
return tryFix([&]() {
|
||||
auto envShape = genericEnv->mapTypeIntoEnvironment(
|
||||
genericEnv->getOpenedElementShapeClass());
|
||||
if (auto *pack = dyn_cast<PackType>(envShape))
|
||||
if (auto *pack = dyn_cast<PackType>(envShape.getPointer()))
|
||||
envShape = pack->unwrapSingletonPackExpansion()->getPatternType();
|
||||
|
||||
return SkipSameShapeRequirement::create(
|
||||
|
||||
Reference in New Issue
Block a user