We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm compiling the source and the error "Unable to infer closure type in the current context" pops up:
public func temporaryAccount(manager: AccountManager, rootPath: String) -> Signal<TemporaryAccount, NoError> { return manager.allocatedTemporaryAccountId() |> mapToSignal { id -> Signal<TemporaryAccount, NoError> in let path = "\(rootPath)/\(accountRecordIdPathName(id))" return openPostbox(basePath: path + "/postbox", globalMessageIdsNamespace: Namespaces.Message.Cloud, seedConfiguration: telegramPostboxSeedConfiguration) |> mapToSignal { result -> Signal<TemporaryAccount, NoError> in switch result { case .upgrading: return .complete() case let .postbox(postbox): return .single(TemporaryAccount(id: id, basePath: path, postbox: postbox)) } } } }
The error occurs on mapToSignal line (line 3 above). How could I fix this?
mapToSignal
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm compiling the source and the error "Unable to infer closure type in the current context" pops up:
The error occurs on
mapToSignal
line (line 3 above). How could I fix this?The text was updated successfully, but these errors were encountered: