-
Notifications
You must be signed in to change notification settings - Fork 90
NotImplementedError is being thrown in... #120
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
Comments
retronym
added a commit
to retronym/async
that referenced
this issue
Jul 27, 2015
Code like: val x = if (cond) throw new A else throw new B Was being transformed to: val ifRes = ??? if (cond) ifRes = throw new A else ifRes = throw new B val x = ifRes by way of the use of `gen.mkZero` which throws `???` if the requested type is `Nothing` This commit special cases `Nothing` typed expressions in a similar manner to `Unit` type expressions. The example above is now translated to: if (cond) throw new A else throw new B val x = throw new IllegalStateException() Fixed scala#120
retronym
added a commit
to retronym/async
that referenced
this issue
Jul 27, 2015
Code like: val x = if (cond) throw new A else throw new B Was being transformed to: val ifRes = ??? if (cond) ifRes = throw new A else ifRes = throw new B val x = ifRes by way of the use of `gen.mkZero` which throws `???` if the requested type is `Nothing` This commit special cases `Nothing` typed expressions in a similar manner to `Unit` type expressions. The example above is now translated to: if (cond) throw new A else throw new B val x = throw new IllegalStateException() Fixed scala#120
retronym
added a commit
to retronym/async
that referenced
this issue
Jul 27, 2015
Code like: val x = if (cond) throw new A else throw new B Was being transformed to: val ifRes = ??? if (cond) ifRes = throw new A else ifRes = throw new B val x = ifRes by way of the use of `gen.mkZero` which throws `???` if the requested type is `Nothing` This commit special cases `Nothing` typed expressions in a similar manner to `Unit` type expressions. The example above is now translated to: if (cond) throw new A else throw new B val x = throw new IllegalStateException() Fixed scala#120
retronym
added a commit
to retronym/async
that referenced
this issue
Jul 27, 2015
Code like: val x = if (cond) throw new A else throw new B Was being transformed to: val ifRes = ??? if (cond) ifRes = throw new A else ifRes = throw new B val x = ifRes by way of the use of `gen.mkZero` which throws `???` if the requested type is `Nothing` This commit special cases `Nothing` typed expressions in a similar manner to `Unit` type expressions. The example above is now translated to: if (cond) throw new A else throw new B val x = throw new IllegalStateException() Fixes scala#120
retronym
added a commit
to retronym/async
that referenced
this issue
Jul 27, 2015
Code like: val x = if (cond) throw new A else throw new B Was being transformed to: val ifRes = ??? if (cond) ifRes = throw new A else ifRes = throw new B val x = ifRes by way of the use of `gen.mkZero` which throws `???` if the requested type is `Nothing` This commit special cases `Nothing` typed expressions in a similar manner to `Unit` type expressions. The example above is now translated to: if (cond) throw new A else throw new B val x = throw new IllegalStateException() Fixes scala#120 (cherry picked from commit 80aaf18)
Hi @dwhjames, Thanks for the bug report. Would you please be able to retest against the latest |
Thanks @retronym, yes, I believe this has fixed the issued. I removed the explicit return type and there was no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
... this example
Maybe related to #104 and #66?
A workaround for this issue is to provide an explicit return type of
Future[String]
to the method.The text was updated successfully, but these errors were encountered: