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

Dotty compatibility #1344

Merged
merged 2 commits into from Dec 6, 2020
Merged

Dotty compatibility #1344

merged 2 commits into from Dec 6, 2020

Conversation

larsrh
Copy link
Contributor

@larsrh larsrh commented Dec 6, 2020

Extracted from #1323

Should unblock #1338

larsrh and others added 2 commits December 6, 2020 11:02
Co-authored-by: Avasil <pgawrys2@gmail.com>
@@ -759,10 +759,10 @@ abstract class Observable[+A] extends Serializable { self =>
* @param sizeOf is the function to compute the weight of each
* element in the buffer
*/
final def bufferTimedWithPressure(
final def bufferTimedWithPressure[AA >: A](
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why dotty requires AA >: A ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because A is in contravariant position here, and Scala 2 didn't recognize that.

@larsrh larsrh merged commit 7eba65a into monix:series/3.x Dec 6, 2020
@larsrh larsrh deleted the dotty-compat/implicits branch December 6, 2020 11:27
@larsrh larsrh mentioned this pull request Dec 6, 2020
6 tasks
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

2 participants