mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove most uses of OptionalTypeKind.
What remains are places where we are conflating optionality with either nullability or failability.
This commit is contained in:
@@ -858,9 +858,7 @@ namespace {
|
||||
return emitSameType(source, target);
|
||||
|
||||
// Handle subtype conversions involving optionals.
|
||||
OptionalTypeKind sourceOptKind;
|
||||
if (auto sourceObjectType =
|
||||
source.FormalType.getOptionalObjectType(sourceOptKind)) {
|
||||
if (auto sourceObjectType = source.FormalType.getOptionalObjectType()) {
|
||||
return emitOptionalToOptional(source, sourceObjectType, target);
|
||||
}
|
||||
assert(!target.FormalType.getOptionalObjectType());
|
||||
|
||||
Reference in New Issue
Block a user