Skip to content

Commit d08b644

Browse files
committed
Sema: Add a missing call to resolveType() with shape mismatch diagnostic
1 parent ab28449 commit d08b644

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Sema/CSDiagnostics.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,9 @@ class SameShapeExpansionFailure final : public FailureDiagnostic {
449449
public:
450450
SameShapeExpansionFailure(const Solution &solution, Type lhs, Type rhs,
451451
ConstraintLocator *locator)
452-
: FailureDiagnostic(solution, locator), lhs(lhs), rhs(rhs) {}
452+
: FailureDiagnostic(solution, locator),
453+
lhs(resolveType(lhs)),
454+
rhs(resolveType(rhs)) {}
453455

454456
bool diagnoseAsError() override;
455457
};

0 commit comments

Comments
 (0)