Skip to content

Commit 2f015ce

Browse files
Conform Float80 to CustomReflectable. (#18577)
Fixes SR-8492.
1 parent 1310ffc commit 2f015ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

stdlib/public/core/Mirrors.swift.gyb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ extension ${Type[0]} : _CustomPlaygroundQuickLookable {
5454
}
5555
% end
5656

57+
#if !os(Windows) && (arch(i386) || arch(x86_64))
58+
extension Float80 : CustomReflectable {
59+
/// A mirror that reflects the Float80 instance.
60+
public var customMirror: Mirror {
61+
return Mirror(self, unlabeledChildren: EmptyCollection<Void>())
62+
}
63+
}
64+
#endif
65+
5766
// ${'Local Variables'}:
5867
// eval: (read-only-mode 1)
5968
// End:

0 commit comments

Comments
 (0)