swift
swift copied to clipboard
[SR-2379] `Data` does not participate in implicit `Optional` promotion`
| Previous ID | SR-2379 |
| Radar | rdar://problem/27899358 |
| Original Reporter | @jadengeller |
| Type | Bug |
| Status | Closed |
| Resolution | Cannot Reproduce |
Environment
Xcode 8 Beta 6, Swift 3
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, TypeChecker |
| Assignee | @rudkx |
| Priority | Medium |
md5: bf4a38576e48109f71a8c0b722ce0da0
Issue Description:
let a: Data? = "umm".data(using: String.Encoding.utf8)!
let b: Any? = "umm".data(using: String.Encoding.utf8)!
Both of these fail to compile.
Those examples both compile in Swift 4.2.