Merge pull request #75011 from hamishknight/context-is-key

[Sema] Enforce PatternTypeRequest returns contextual type
This commit is contained in:
Hamish Knight
2024-07-07 10:23:57 +01:00
committed by GitHub
13 changed files with 45 additions and 60 deletions

View File

@@ -919,7 +919,6 @@ static ValueDecl *deriveHashable_hashValue(DerivedConformance &derived) {
Pattern *hashValuePat =
NamedPattern::createImplicit(C, hashValueDecl, intType);
hashValuePat = TypedPattern::createImplicit(C, hashValuePat, intType);
hashValuePat->setType(intType);
auto *patDecl = PatternBindingDecl::createImplicit(
C, StaticSpellingKind::None, hashValuePat, /*InitExpr*/ nullptr,