Skip to content

Conversation

KingOfBrian
Copy link
Contributor

This is an update to #8010 that should resolve SR-1762. The change makes the final protocol extension warning only occur in Swift 3 mode, otherwise the usual final error message is generated.

I tried to take in the feedback from the other PR that tests in test/Compatibility must cover the complete functionality of the original. I made a separate test test/attr/attr_final_protocol_extension.swift and copied it into test/Compatibility to check the Swift 3 code path. It also seemed valid to copy over all of test/attr/attr_final.swift into test/Compatibility, but I chose to just do a subset since only a small slice of behavior changes. Glad to do anything that makes more sense here.

Brian

@KingOfBrian KingOfBrian changed the title Emit error in Swift 4 mode for protocol extensions Emit error in Swift 4 mode for final protocol extensions Apr 20, 2017
@jrose-apple
Copy link
Contributor

Looks great to me! Thanks, Brian.

@swift-ci Please smoke test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants