mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Sema: Handle storage wrappers correctly in diagnostics
This commit is contained in:
committed by
Pavel Yaskevich
parent
7054fcb270
commit
55b17feac1
@@ -4817,9 +4817,11 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
|
||||
auto resolvedOverload = findSelectedOverloadFor(baseExpr);
|
||||
|
||||
if (resolvedOverload) {
|
||||
if (auto propertyWrapper =
|
||||
getPropertyWrapperInformation(resolvedOverload)) {
|
||||
auto wrapperTy = propertyWrapper->second;
|
||||
auto wrapper = getStorageWrapperInformation(resolvedOverload);
|
||||
if (!wrapper)
|
||||
wrapper = getPropertyWrapperInformation(resolvedOverload);
|
||||
if (wrapper) {
|
||||
auto wrapperTy = wrapper->second;
|
||||
auto result = solveWithNewBaseOrName(wrapperTy, member);
|
||||
if (result == SolutionKind::Solved) {
|
||||
auto *fix = UsePropertyWrapperType::create(
|
||||
|
||||
Reference in New Issue
Block a user