mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
the swift.Slice type got removed a long time ago, being replaced with
what is now Swift.Array. Update various internal stuff to refer to Array instead of Slice. NFC. Swift SVN r14567
This commit is contained in:
@@ -104,7 +104,7 @@ void ConstraintSystem::assignFixedType(TypeVariableType *typeVar, Type type,
|
||||
if (literalProtocol) {
|
||||
if (auto defaultType = TC.getDefaultType(literalProtocol, DC)) {
|
||||
// Check whether the nominal types match. This makes sure that we
|
||||
// properly handle Slice vs. Slice<T>.
|
||||
// properly handle Array vs. Array<T>.
|
||||
if (defaultType->getAnyNominal() != type->getAnyNominal())
|
||||
increaseScore(SK_NonDefaultLiteral);
|
||||
}
|
||||
@@ -587,7 +587,7 @@ Type ConstraintSystem::openType(
|
||||
|
||||
Type ConstraintSystem::openBindingType(Type type, DeclContext *dc) {
|
||||
Type result = openType(type, dc);
|
||||
// FIXME: Better way to identify Slice<T>.
|
||||
// FIXME: Better way to identify Array<T>.
|
||||
if (auto boundStruct
|
||||
= dyn_cast<BoundGenericStructType>(result.getPointer())) {
|
||||
if (!boundStruct->getParent() &&
|
||||
|
||||
Reference in New Issue
Block a user