Skip to content

Commit 4614994

Browse files
committed
[Foundation] Add @usableFromInline to MeasurementBridgeType for now
Work around a missing feature in textual interfaces by marking this convenience typealias as @usableFromInline. Since typealiases don't actually have a run-time presence, we can still take this out at any time.
1 parent 1eeedd3 commit 4614994

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/SDK/Foundation/Measurement.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,15 @@ extension Measurement {
206206

207207
// Implementation note: similar to NSArray, NSDictionary, etc., NSMeasurement's import as an ObjC generic type is suppressed by the importer. Eventually we will need a more general purpose mechanism to correctly import generic types.
208208

209+
// FIXME: Remove @usableFromInline from MeasurementBridgeType once
210+
// rdar://problem/44662501 is fixed. (The Radar basically just says "look
211+
// through typealiases and inherited protocols when printing extensions".)
212+
209213
#if DEPLOYMENT_RUNTIME_SWIFT
214+
@usableFromInline
210215
internal typealias MeasurementBridgeType = _ObjectTypeBridgeable
211216
#else
217+
@usableFromInline
212218
internal typealias MeasurementBridgeType = _ObjectiveCBridgeable
213219
#endif
214220

0 commit comments

Comments
 (0)