Skip to content

Fix #9369: Use new extension syntax #9373

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 1 commit into from
Jul 16, 2020

Conversation

nicolasstucki
Copy link
Contributor

No description provided.

@nicolasstucki nicolasstucki linked an issue Jul 16, 2020 that may be closed by this pull request
@nicolasstucki nicolasstucki marked this pull request as ready for review July 16, 2020 09:35
@nicolasstucki nicolasstucki requested a review from liufengyun July 16, 2020 09:35
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

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

Otherwise, LGTM

@@ -48,6 +48,7 @@ object Cbufs {
def isEmpty: Boolean = buf.length() == 0
def length: Int = buf.length()
def last: Char = buf.charAt(buf.length() - 1)
end extension
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid the given line in other places, using the same solution here?

given ListOfListDecorator as AnyRef:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In general, the named ones needed to be in a given or they where not found in other classes.

@nicolasstucki nicolasstucki merged commit 33e34b7 into scala:master Jul 16, 2020
@nicolasstucki nicolasstucki deleted the fix-#9369 branch July 16, 2020 12:12
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.

migrate old extension syntax to a new one
2 participants