-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Description
When using:
expect(subject).[last|first|array].to(throwError())
the tests only compile if the element used is Any. Otherwise you get a compilation error.
So
let subject = ReplaySubject<**Any**>.createUnbounded()
subject.onError(AnyError.any)
expect(subject).first.to(throwError())
works.
While
let subject = ReplaySubject<**String**>.createUnbounded()
subject.onError(AnyError.any)
expect(subject).first.to(throwError())
proceses: Instance method 'to(_:description:)' requires the types 'String' and 'Any' be equivalent
This issue seems closely related to #38
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels