Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Report type_literal_in_constant_pattern more often. #4358

Conversation

scheglov
Copy link
Contributor

As requested in dart-lang/sdk#59087

@coveralls
Copy link

Coverage Status

Coverage: 96.439% (-0.002%) from 96.441% when pulling 1e651c5 on scheglov:issue4195-type_literal_in_constant_pattern-more-often into 7f3b3a4 on dart-lang:main.

Copy link
Member

@pq pq left a comment

Choose a reason for hiding this comment

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

🎉

@scheglov scheglov merged commit 1d31ded into dart-lang:main May 15, 2023
@scheglov scheglov deleted the issue4195-type_literal_in_constant_pattern-more-often branch May 15, 2023 21:44
@mit-mit
Copy link
Member

mit-mit commented May 16, 2023

Is this something we might be able to cherry pick?

@scheglov
Copy link
Contributor Author

The past experience left me with a feeling that we don't to cherry picks for linter.
@pq might confirm, or claim that I'm exaggerating :-)

@bwilkerson
Copy link
Member

We are able to do cherry picks from the linter, but it requires creating a new linter branch based on the last branch pulled into the SDK, applying the changes on that branch, and then pulling the new branch into the target SDK branch (bypassing the main SDK branch).

@pq
Copy link
Member

pq commented May 16, 2023

Yep. What Brian said. The most careful way to cherry-pick a linter fix is a bit painful and time-consuming. Alternatively we could pull in more changes and shoulder a bit of risk.

If this is high priority, I'm happy to look into it.

@mit-mit
Copy link
Member

mit-mit commented May 17, 2023

We discussed this in the language team, and we think that it's high value enough to pursue as a cherry pick. We'll let you folks decide if the best approach is a linter roll or just patching this single change in.

@mit-mit
Copy link
Member

mit-mit commented May 24, 2023

@pq did you have a chance to look into a cherry pick?

@pq
Copy link
Member

pq commented May 24, 2023

Yeah. I'm working on it. The trick is we'd like to get the change landed into main first so that the cherry-pick isn't out of sync with what's at tip of tree. That roll has been stalled for other reasons (https://dart-review.googlesource.com/c/sdk/+/304360) but we're getting there!

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

Successfully merging this pull request may close these issues.

5 participants