Open swift-ci opened 8 years ago
Comment by Fabian Ehrentraud (JIRA)
example project: https://github.com/fabb/OptionalRuntimeCrash.git
It's not exactly wrong, because id
is imported as Any
and Any
can hold any value, including optionals. @jckarter is considering some ways to improve the experience here, though, such as a warning when implicitly converting from Optional to Any or AnyObject.
Comment by Fabian Ehrentraud (JIRA)
In the mean time I found SE-0140 which would also be a good idea to mitigate the issue.
It's just strange that `nonnull` can be annotated but will be ignored, but I understand the tradeoffs made in SE-0116.
Warnings (treated as errors) would be great.
Environment
Xcode 8 GMAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 47291f02d7f3cfebfb7e90591c41d00cIssue Description:
Repro: