mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
BooleanType => Boolean
This commit is contained in:
committed by
Max Moiseev
parent
507b68315e
commit
2c95bb6d51
@@ -5762,7 +5762,7 @@ bool ConstraintSystem::applySolutionFix(Expr *expr,
|
||||
|
||||
if (!resolved->getPath().empty()) {
|
||||
// We allow OptionalToBoolean fixes with an opened type to refer to the
|
||||
// BooleanType conformance.
|
||||
// Boolean conformance.
|
||||
if (fix.first.getKind() == FixKind::OptionalToBoolean &&
|
||||
resolved->getPath().size() == 1 &&
|
||||
resolved->getPath()[0].getKind() == ConstraintLocator::OpenedGeneric)
|
||||
@@ -6436,7 +6436,7 @@ Solution::convertBooleanTypeToBuiltinI1(Expr *expr, ConstraintLocator *locator)
|
||||
auto result = convertViaBuiltinProtocol(
|
||||
*this, expr, locator,
|
||||
tc.getProtocol(expr->getLoc(),
|
||||
KnownProtocolKind::BooleanType),
|
||||
KnownProtocolKind::Boolean),
|
||||
tc.Context.Id_boolValue,
|
||||
tc.Context.Id_getBuiltinLogicValue,
|
||||
diag::condition_broken_proto,
|
||||
|
||||
Reference in New Issue
Block a user