Import NSDictionary as Dictionary<NSObject, AnyObject>

Fixes <rdar://problem/16870626>.


Swift SVN r18907
This commit is contained in:
Doug Gregor
2014-06-15 10:44:23 +00:00
parent d3d2092ac0
commit dd8c668aa8
10 changed files with 11 additions and 38 deletions

View File

@@ -1045,12 +1045,7 @@ extension String {
/// Returns a dictionary object initialized with the keys and
/// values found in the `String`.
func propertyListFromStringsFileFormat() -> Dictionary<String, String> {
var result = Dictionary<String, String>()
_ns.propertyListFromStringsFileFormat().enumerateKeysAndObjectsUsingBlock {
key, value, stop in
result[key! as String] = value! as? String
}
return result
return _ns.propertyListFromStringsFileFormat() as Dictionary<String, String>
}
// - (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)aSet