mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Fixup TypeChecker::getOptionalType To Not Return Type()
This commit is contained in:
@@ -6889,6 +6889,7 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
|
||||
TVO_CanBindToLValue |
|
||||
TVO_CanBindToNoEscape);
|
||||
Type optTy = TypeChecker::getOptionalType(SourceLoc(), innerTV);
|
||||
assert(!optTy->hasError());
|
||||
SmallVector<Constraint *, 2> optionalities;
|
||||
auto nonoptionalResult = Constraint::createFixed(
|
||||
*this, ConstraintKind::Bind,
|
||||
|
||||
Reference in New Issue
Block a user