我正在用 Kotlin 编写一个方法:
fun fetchDepositSession(): Completable =
Observable.fromIterable(session.accounts)
.map(DepositSession::DepositAccount)
.toList()
.doOnSuccess(depositSession::depositAccounts::set)
.flatMapObservable(Observable::fromIterable)
.map(DepositSession.DepositAccount::account::get)
.toCompletable()
该行.flatMapObservable(Observable::fromIterable)
导致错误: