Skip to content

Commit 9ebb444

Browse files
authored
Merge pull request #2893 from compnerd/open-the-source
2 parents 2dce195 + 43d7b75 commit 9ebb444

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/Foundation/RunLoop.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ extension RunLoop {
327327
@available(*, deprecated, message: "For XCTest use only.")
328328
open class _Source: NSObject {
329329
fileprivate var _cfSourceStorage: AnyObject!
330-
fileprivate var cfSource: CFRunLoopSource { unsafeBitCast(_cfSourceStorage, to: CFRunLoopSource.self) }
331-
332330

333331
public init(order: Int = 0) {
334332
super.init()
@@ -410,3 +408,9 @@ extension RunLoop {
410408
}
411409
}
412410
}
411+
412+
extension RunLoop._Source {
413+
fileprivate var cfSource: CFRunLoopSource {
414+
unsafeBitCast(_cfSourceStorage, to: CFRunLoopSource.self)
415+
}
416+
}

0 commit comments

Comments
 (0)