Skip to content
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

Missing argument for parameter #1 in call #42

Open
chatarveer opened this issue Feb 27, 2018 · 1 comment
Open

Missing argument for parameter #1 in call #42

chatarveer opened this issue Feb 27, 2018 · 1 comment

Comments

@chatarveer
Copy link

chatarveer commented Feb 27, 2018

Class Name
Realm+Ext.swift

Line 28 & 46

            observer.onNext()

Error :
Missing argument for parameter #1 in call

When you add some param, it says
Argument passed to call that takes no arguments

Like Trap in Cycle.

Xcode version
Version 9.2 (9C40b)
RxSwift 4.0
Swift 4.0

In RxSwift, method declaration is like below. So, how you calling without parameter?
public func onNext(_ element: Self.E)

Any suggestion?

@sergdort
Copy link
Owner

It's possible because of Observer<Void>. I guess you can try observer.onNext(Void())

It's weird that it does not compile to you as I have the same configuration ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants