You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if the overloads were selectable, it seems especially perilous because the second param list is either a function or =>Unit, and anything is convertible to Unit by value discarding, or so say the puzzlers.
I can define this object Test without getting an error:
However, when I want to use the functions, I can't:
It makes sense for me that this is impossible, but I would like to get an error already when I define f, not only when I want to use it.
Btw this happened in RxScala: There, this method:
https://github.com/Netflix/RxJava/blob/13cd6a9b1813c5dbe5fdd538f18a5f3a2e31e46f/language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Scheduler.scala#L122
clashes with this one:
https://github.com/Netflix/RxJava/blob/13cd6a9b1813c5dbe5fdd538f18a5f3a2e31e46f/language-adaptors/rxjava-scala/src/main/scala/rx/lang/scala/Scheduler.scala#L158
and no error was emitted.
The text was updated successfully, but these errors were encountered: