Skip to content

Commit d5f5ba6

Browse files
authored
Merge pull request #21297 from millenomi/fix-crash-init-cocoaDictionary
Build crash fix: AnyObject -> NSDictionary
2 parents e077af2 + d57f714 commit d5f5ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Darwin/Foundation/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)