Skip to content

[Typechecker] Reapply fix for SR-11298 #27639

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

Merged
merged 12 commits into from
Oct 15, 2019
Merged

[Typechecker] Reapply fix for SR-11298 #27639

merged 12 commits into from
Oct 15, 2019

Conversation

theblixguy
Copy link
Collaborator

@theblixguy theblixguy commented Oct 12, 2019

This re-applies the previously accepted fix for SR-11298.

  1. The first commit unreverts Revert "Merge pull request #27057 from theblixguy/unrevert/SR-11298" #27611
  2. The second commit applies a tweak so we don't incorrectly mark explicitly mutating methods in a class-constrained protocol extension as nonmutating.

Resolves SR-11298

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

@theblixguy
Copy link
Collaborator Author

@swift-ci please test source compatibility

@theblixguy
Copy link
Collaborator Author

Debug source compat failure is an unrelated UPASS.

Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sticking with this! I think this'll assuage the core team's concerns.

@theblixguy
Copy link
Collaborator Author

@swift-ci please smoke test

@jrose-apple
Copy link
Contributor

Debug will fail again but just that one project

@swift-ci Please test source compatibility

@theblixguy
Copy link
Collaborator Author

theblixguy commented Oct 15, 2019

/Users/buildnode/jenkins/workspace/swift-PR-osx-smoke-test/branch-master/swift/test/NameBinding/name_lookup.swift:615:41: error: unexpected error produced: property 'x' references itself
01:16:43 struct PatternBindingWithTwoVars1 { var x = 3, y = x }

Weird... I have no idea how my changes could possibly cause this. Let me rebase and try again.

EDIT: Could be due to #27668 where this test case was last touched.

@theblixguy
Copy link
Collaborator Author

theblixguy commented Oct 15, 2019

@swift-ci please smoke test

(will run source compat if this passes)

@theblixguy
Copy link
Collaborator Author

theblixguy commented Oct 15, 2019

Validation order changed, this PR should fix that failing test: #27679

@theblixguy
Copy link
Collaborator Author

Alright, let’s try again:

@swift-ci please smoke test

@theblixguy
Copy link
Collaborator Author

@swift-ci please test source compatibility

@theblixguy
Copy link
Collaborator Author

Great, all good (except that UPASS). Let's :shipit: and hope it doesn't get reverted again!

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.

4 participants