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

fix compile errors with latest Scala 2.13 #869

Merged
merged 1 commit into from
May 2, 2019

Conversation

xuwei-k
Copy link
Contributor

@xuwei-k xuwei-k commented Apr 23, 2019

https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-community-build/1981/consoleText

[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:52: missing argument list for method now in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `now _` or `now(_)` instead of `now`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                    ^
[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:84: missing argument list for method raiseError in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `raiseError _` or `raiseError(_)` instead of `raiseError`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                                                    ^

https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-community-build/1981/consoleText

```
[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:52: missing argument list for method now in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `now _` or `now(_)` instead of `now`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                    ^
[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:84: missing argument list for method raiseError in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `raiseError _` or `raiseError(_)` instead of `raiseError`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                                                    ^
```
@Avasil
Copy link
Collaborator

Avasil commented May 2, 2019

Thank you @xuwei-k

@Avasil Avasil merged commit 779613a into monix:master May 2, 2019
mdedetrich pushed a commit to mdedetrich/monix that referenced this pull request Mar 28, 2020
https://scala-ci.typesafe.com/job/scala-2.13.x-integrate-community-build/1981/consoleText

```
[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:52: missing argument list for method now in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `now _` or `now(_)` instead of `now`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                    ^
[monix] [error] /home/jenkins/workspace/scala-2.13.x-integrate-community-build/target-0.9.16/project-builds/monix-68f96a20147d411e5f7069a24342c5d9f961029a/monix-reactive/shared/src/main/scala/monix/reactive/Observable.scala:2483:84: missing argument list for method raiseError in object Observable
[monix] [error] Unapplied methods are only converted to functions when a function type is expected.
[monix] [error] You can make this conversion explicit by writing `raiseError _` or `raiseError(_)` instead of `raiseError`.
[monix] [error]     onErrorHandleWith(ex => (pf andThen Observable.now).applyOrElse(ex, Observable.raiseError))
[monix] [error]                                                                                    ^
```
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.

2 participants