We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attachment: Download
macOS 10.13.6 Xcode 10.0 (10A254a)
md5: 980d7641f418602d81506f9fc9297381
relates to:
Issue Description:
With a system of mutually referencing protocols, I ran into a strange build error. Reordering the protocols allowed the compile to succeed.
Using the Xcode 10 tools, compile the attached sample with `xcrun swiftc recursive-protocol-ordering.swift`. This results in:
recursive-protocol-ordering.swift:26:17: error: static method requirement 'baseMessageName()' cannot add constraint 'Self == Self.ChangeType.SnapshotType.ChangeType.SnapshotType.RecordType.SnapshotType' on 'Self' static func baseMessageName() -> String ^
As noted in the example, reordering the protocols allows the file to compile.
The text was updated successfully, but these errors were encountered:
cc @DougGregor, @slavapestov what is the expected behavior here?
Sorry, something went wrong.
It's not expected because changing the order of declarations should not change the meaning of the code.
I'm no longer seeing this issue in Xcode 11.2b1.
slavapestov
No branches or pull requests
Attachment: Download
Environment
macOS 10.13.6
Xcode 10.0 (10A254a)
Additional Detail from JIRA
md5: 980d7641f418602d81506f9fc9297381
relates to:
Issue Description:
With a system of mutually referencing protocols, I ran into a strange build error. Reordering the protocols allowed the compile to succeed.
Using the Xcode 10 tools, compile the attached sample with `xcrun swiftc recursive-protocol-ordering.swift`. This results in:
As noted in the example, reordering the protocols allows the file to compile.
The text was updated successfully, but these errors were encountered: