Merge pull request #85305 from DougGregor/custom-conformance-availability

[Custom availability] Fix conformance availability diagnostic
This commit is contained in:
Doug Gregor
2025-11-04 15:25:43 -08:00
committed by GitHub
4 changed files with 59 additions and 5 deletions

View File

@@ -7265,6 +7265,10 @@ ERROR(conformance_availability_only_version_newer, none,
"conformance of %0 to %1 is only available in %2 %3 or newer",
(Type, Type, AvailabilityDomain, AvailabilityRange))
ERROR(conformance_availability_not_available, none,
"conformance of %0 to %1 is only available in %2",
(Type, Type, AvailabilityDomain))
//------------------------------------------------------------------------------
// MARK: if #available(...)
//------------------------------------------------------------------------------