Closed
Description
Previous ID | SR-6690 |
Radar | rdar://problem/40863157 |
Original Reporter | @rudkx |
Type | Bug |
Status | Resolved |
Resolution | Done |
Additional Detail from JIRA
Votes | 0 |
Component/s | Compiler |
Labels | Bug |
Assignee | @clackary |
Priority | Medium |
md5: 856cbd26e1ce6ec8571a8765cc6aa095
Issue Description:
The fix for https://bugs.swift.org/browse/SR-6685 exposes a problem in the ObjectMapper project in the source compatibility suite.
The project has functions overloaded by both 'inout T?'
and 'inout T!'
, which should never have been allowed by the compiler for any version of Swift.
For example:
ObjectMapper/Sources/TransformOperators.swift:58:13: error: invalid redeclaration of '<-'
public func <- <Transform: TransformType>(left: inout Transform.Object!, right: (Map, Transform))
ObjectMapper/Sources/TransformOperators.swift:36:13: note: '<-' previously declared here
public func <- <Transform: TransformType>(left: inout Transform.Object?, right: (Map, Transform))
ObjectMapper/Sources/TransformOperators.swift:115:13: error: invalid redeclaration of '<-'
public func <- <Transform: TransformType>(left: inout [Transform.Object]!, right: (Map, Transform))
...etc...