-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
State all known limitations of right-associative extension methods #19210
State all known limitations of right-associative extension methods #19210
Conversation
b8ffad2
to
26e0d88
Compare
26e0d88
to
b970344
Compare
Note that all limitations can be fixed with #19203 |
extension (x: Int) | ||
def *:[T](xs: List[T]): List[T] = ... | ||
|
||
xs.*:[Int](1) // error when trying to set T explicitly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still works:
*:[Int](xs)(1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I only stated the cases that do not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, but you state that its "impossible" - but it is possible, just not how might be expected
docs/_docs/reference/contextual/right-associative-extension-methods.md
Outdated
Show resolved
Hide resolved
…thods.md Co-authored-by: Jamie Thompson <[email protected]>
[skip test]
[skip test_windows_fast]
[skip test_sbt]
[skip community_build]
[skip mima]