mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #75518 from Azoy/integer-generics
Implement Value generics
This commit is contained in:
@@ -7535,6 +7535,14 @@ ConstraintSystem::matchTypes(Type type1, Type type2, ConstraintKind kind,
|
||||
|
||||
case TypeKind::ErrorUnion:
|
||||
break;
|
||||
|
||||
case TypeKind::Integer:
|
||||
if (shouldAttemptFixes())
|
||||
break;
|
||||
|
||||
// If we're asking if two integer types are the same, then we know they
|
||||
// aren't.
|
||||
return getTypeMatchFailure(locator);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7684,7 +7692,7 @@ ConstraintSystem::matchTypes(Type type1, Type type2, ConstraintKind kind,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (kind == ConstraintKind::BindToPointerType) {
|
||||
if (desugar2->isEqual(getASTContext().TheEmptyTupleType))
|
||||
return getTypeMatchSuccess();
|
||||
@@ -8211,6 +8219,10 @@ ConstraintSystem::simplifyConstructionConstraint(
|
||||
|
||||
return SolutionKind::Error;
|
||||
}
|
||||
|
||||
case TypeKind::Integer: {
|
||||
llvm_unreachable("implement me");
|
||||
}
|
||||
}
|
||||
|
||||
auto fnLocator = getConstraintLocator(locator,
|
||||
|
||||
Reference in New Issue
Block a user