Skip to content

Commit 74e2cb6

Browse files
Partially revert Float16 availability changes (#34847)
* Partially revert Float16 availability changes Specifically, when building for macOS/x86_64, use the old availability annotation instead of marking Float16 unconditionally unavailable to give downstream clients a window to adjust their own annotations.
1 parent ba6c08f commit 74e2cb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,13 @@ internal struct _${Self}AnyHashableBox: _AnyHashableBox {
13521352

13531353
${SelfDocComment}
13541354
@frozen
1355+
% if bits == 16:
1356+
@available(iOS 14, tvOS 14, watchOS 7, *)
1357+
@available(macOS, unavailable)
1358+
@available(macCatalyst, unavailable)
1359+
% else:
13551360
@available(*, unavailable, message: "${Self} is not available on target platform.")
1361+
% end
13561362
public struct ${Self} {
13571363
/// Creates a value initialized to zero.
13581364
@_transparent

0 commit comments

Comments
 (0)