mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSSimplify] Don't erase sugar while forming locators for generic types during matching
Fixes retrieve information form locators which means that we need to preserve the original form for diagnostics.
This commit is contained in:
@@ -3927,8 +3927,8 @@ ConstraintSystem::matchDeepEqualityTypes(Type type1, Type type2,
|
||||
|
||||
if (shouldAttemptFixes()) {
|
||||
auto *baseLoc =
|
||||
getConstraintLocator(locator, {LocatorPathElt::GenericType(bound1),
|
||||
LocatorPathElt::GenericType(bound2)});
|
||||
getConstraintLocator(locator, {LocatorPathElt::GenericType(type1),
|
||||
LocatorPathElt::GenericType(type2)});
|
||||
|
||||
auto argMatchingFlags = subflags;
|
||||
// Allow the solver to produce separate fixes while matching
|
||||
|
||||
Reference in New Issue
Block a user