Skip to content

[SR-6690] ObjectMapper project in source compatibility suite broken by fix for SR-6685 #49239

Closed
@rudkx

Description

@rudkx
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...

Metadata

Metadata

Assignees

Labels

bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itself

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions