mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75011 from hamishknight/context-is-key
[Sema] Enforce PatternTypeRequest returns contextual type
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user