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

adjust to 2.13.6 restriction on narrowing access when overriding #317

Merged
merged 2 commits into from May 12, 2021

Conversation

SethTisue
Copy link
Member

@SethTisue SethTisue commented May 11, 2021

as per scala/scala#9542

this came up in the Scala 2.13 community build

@SethTisue
Copy link
Member Author

SethTisue commented May 11, 2021

I initially got a spurious failure on MacOS that went away when I re-ran the jobs.

I added the fail-fast thing in a second commit to prevent such a spurious failure in one job from causing the other jobs to be canceled.

@@ -903,11 +903,11 @@ object RelativeGlob {
override def hashCode: Int = glob.hashCode
}
private final class GlobMatcher(override val glob: String) extends SingleComponentMatcher {
private[this] val (prefix, pattern) = glob.indexOf(":") match {
private[this] val (prefixString, pattern) = glob.indexOf(":") match {

Choose a reason for hiding this comment

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

Could also push down to initializer of matcher.

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM

@eed3si9n eed3si9n merged commit c267554 into sbt:develop May 12, 2021
@SethTisue SethTisue deleted the override-private-this branch May 12, 2021 17:35
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.

None yet

3 participants