Skip to content

Commit bbbe605

Browse files
author
Dave Abrahams
committed
WIP: Drop lazy Dictionary/Set representations
Two tests need to be fixed up, but first I want to reconsider how _ObjectiveCBridgeable works.
1 parent 6f39b4b commit bbbe605

File tree

7 files changed

+25
-310
lines changed

7 files changed

+25
-310
lines changed

stdlib/public/SDK/Foundation/Foundation.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,9 +580,7 @@ extension Dictionary {
580580
// The bug is fixed in: OS X 10.11.0, iOS 9.0, all versions of tvOS
581581
// and watchOS.
582582
self = Dictionary(
583-
_immutableCocoaDictionary:
584-
unsafeBitCast(_cocoaDictionary.copy(with: nil) as AnyObject,
585-
to: _NSDictionary.self))
583+
_unsafeReferenceCast(_cocoaDictionary, to: _NSDictionary.self))
586584
}
587585
}
588586

0 commit comments

Comments
 (0)