mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CSFix] Use fully qualified locators for requirement failures
Would help to diagnose failures where requirement comes from contextual type, also simplifies logic around requirement fixes to some degree.
This commit is contained in:
@@ -86,7 +86,9 @@ Expr *FailureDiagnostic::findParentExpr(Expr *subExpr) const {
|
||||
}
|
||||
|
||||
Type RequirementFailure::getOwnerType() const {
|
||||
return getType(getAnchor())->getInOutObjectType()->getMetatypeInstanceType();
|
||||
return getType(getRawAnchor())
|
||||
->getInOutObjectType()
|
||||
->getMetatypeInstanceType();
|
||||
}
|
||||
|
||||
const GenericContext *RequirementFailure::getGenericContext() const {
|
||||
|
||||
Reference in New Issue
Block a user