mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #34036 from xedin/replace-error-types-with-holes
[CSGen] Avoid failing on invalid declarations
This commit is contained in:
@@ -7014,7 +7014,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
|
||||
// type but a hole.
|
||||
auto shouldRecordFixForHole = [&](HoleType *baseType) {
|
||||
auto *originator =
|
||||
baseType->getOriginatorType().dyn_cast<TypeVariableType *>();
|
||||
baseType->getOriginator().dyn_cast<TypeVariableType *>();
|
||||
|
||||
if (!originator)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user