Skip to content

Commit 509d2ea

Browse files
committed
Build crash fix: AnyObject -> NSDictionary
As seen in swift crashers while building swiftlang/swift#20103
1 parent f145d2c commit 509d2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Darwin/Foundation-swiftoverlay/NSDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension Dictionary {
3434
///
3535
/// The provided `NSDictionary` will be copied to ensure that the copy can
3636
/// not be mutated by other code.
37-
fileprivate init(_cocoaDictionary: __shared AnyObject) {
37+
fileprivate init(_cocoaDictionary: __shared NSDictionary) {
3838
assert(
3939
_isBridgedVerbatimToObjectiveC(Key.self) &&
4040
_isBridgedVerbatimToObjectiveC(Value.self),

0 commit comments

Comments
 (0)