Closed KadekM closed 7 years ago
Currently inference fails on this (scala 2.11):
observable.map { case ...=> ... case.. => ... }
missing parameter type for expanded function [error] The argument types of an anonymous function must be fully known. (SLS 8.5) [error] Expected type was: ? [error] observable.map {
Could we prehaps rename
def map[R](project: (T, Int) => R): Observable[R] = {
to something else ? Like mapWithIndex
mapWithIndex
That would fix the inference problem.
Fixed with commit https://github.com/LukaJCB/rxscala-js/commit/9ea96a910c0b78a2333a621c3c79fcb068b34434
Currently inference fails on this (scala 2.11):
Could we prehaps rename
to something else ? Like
mapWithIndex
That would fix the inference problem.