Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11220] Compiler Diagnostic Regression in Xcode 11 beta 4 #53619

Open
Mordil opened this issue Jul 28, 2019 · 4 comments
Open

[SR-11220] Compiler Diagnostic Regression in Xcode 11 beta 4 #53619

Mordil opened this issue Jul 28, 2019 · 4 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation regression swift 5.1 type checker Area → compiler: Semantic analysis

Comments

@Mordil
Copy link

Mordil commented Jul 28, 2019

Previous ID SR-11220
Radar rdar://53630473
Original Reporter @Mordil
Type Bug

Attachment: Download

Environment

macOS 10.14.6

Xcode 11 beta 4 (11M374r)

Swift 5.1 compiler (shipped w/ Xcode 11 beta)

Additional Detail from JIRA
Votes 1
Component/s Compiler
Labels Bug, 5.1Regression, DiagnosticsQoI, TypeChecker
Assignee None
Priority Medium

md5: 7271b4aa95f99a6cf78e11a05258d1e1

Issue Description:

With the provided attached project, attempt to build the project (after resolving the project's dependencies) and notice the build failure for Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift Line 322.

The Swift 5.1 (Xcode 11 b 4) compiler states:

Cannot convert value of type '[(String, [RedisByteDecoder.InboundOut])]' (aka 'Array<(String, Array<RESPValue>)>') to expected argument type '[(String, [_])]'

The compiler should properly say (as found w/ Swift 5 & Xcode 10.3):

Static method 'verifyDecoder(stringInputOutputPairs:decoderFactory:)' requires that 'RedisByteDecoder.InboundOut' (aka 'RESPValue') conform to 'Equatable'
@belkadan
Copy link
Contributor

cc @xedin

@xedin
Copy link
Member

xedin commented Jul 29, 2019

@mordilCould you please re-attach the project? There is no `RedisByteDecoderTests+NIOVerifier.swift` in the directory you mentioned.

@Mordil
Copy link
Author

Mordil commented Jul 29, 2019

@xedin Oops. That was amateurish. I've re-uploaded the project with the build issues and files.

The project structure deviated since I wrote this bug last night.

The fails are now in just Tests/RediStackTests/ChannelHandlers/RedisByteDecoderTests.swift Line 322

@xedin
Copy link
Member

xedin commented Jul 29, 2019

@mordilThank you!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself diagnostics QoI Bug: Diagnostics Quality of Implementation regression swift 5.1 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

4 participants