[SR-6915] Array += is stricter when adding arrays of conformers to arrays of protocols #49464
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.1
type checker
Area → compiler: Semantic analysis
Environment
Additional Detail from JIRA
md5: 25774d7409bb46b73b10c3ab18e06880
Issue Description:
The following code has one expected error in Xcode 9.2, but it has a new error in Xcode 9.3. It also occurs if you use the newly renamed
compactMap
instead offlatMap
. Both errors can be worked around with `as [MyProtocol]`, but I wasn't sure if it was expected that the second case would be an error in Swift 4.1.This was reported as a bug on my open source repo here: Rightpoint/BonMot#320
The text was updated successfully, but these errors were encountered: