Look through bridgeFromObjectiveC calls to find forced casts within optional injections.

Fixes <rdar://problem/17003302>.


Swift SVN r18563
This commit is contained in:
Doug Gregor
2014-05-22 15:47:13 +00:00
parent 47bae74a59
commit f305cd7946
7 changed files with 97 additions and 32 deletions

View File

@@ -1039,7 +1039,7 @@ extension String {
var result = Dictionary<String, String>()
_ns.propertyListFromStringsFileFormat().enumerateKeysAndObjectsUsingBlock {
key, value, stop in
result[key! as String] = value! as String
result[key! as String] = value! as? String
}
return result
}