Skip to content

Commit d6206d5

Browse files
authored
Merge pull request #20338 from milseman/hot_cocoa
[String] Add _CocoaString typealias to all build configurations.
2 parents b10e5de + 62549c8 commit d6206d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stdlib/public/core/StringBridge.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212

1313
import SwiftShims
1414

15+
/// Effectively an untyped NSString that doesn't require foundation.
16+
@usableFromInline
17+
internal typealias _CocoaString = AnyObject
18+
1519
#if _runtime(_ObjC)
1620
// Swift's String bridges NSString via this protocol and these
1721
// variables, allowing the core stdlib to remain decoupled from
1822
// Foundation.
1923

20-
/// Effectively an untyped NSString that doesn't require foundation.
21-
public typealias _CocoaString = AnyObject
22-
2324
@usableFromInline // @testable
2425
@_effects(releasenone)
2526
internal func _stdlib_binary_CFStringCreateCopy(

0 commit comments

Comments
 (0)