swift
swift copied to clipboard
[SR-2034] Import Error With NSError Overload
| Previous ID | SR-2034 |
| Radar | None |
| Original Reporter | @jadengeller |
| Type | Bug |
| Status | Resolved |
| Resolution | Done |
Environment
Swift 2.x in Xcode 7.x and Swift 3 b2 in Xcode 8 b2
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Compiler |
| Labels | Bug, ClangImporter |
| Assignee | None |
| Priority | Medium |
md5: 0e782603becb6e28438b625c5d7d4ac8
Issue Description:
```
- (void)foo NS_REFINED_FOR_SWIFT;
- (BOOL)fooWithError:(NSError **)error;
```
`fooWithError:` is imported to Swift as `func fooWithError() throws` rather than `func foo() throws`.