Skip to content

Identity checking tests no longer compile on 13.7.0 #1182

@stodirascu

Description

@stodirascu
  • I have read CONTRIBUTING and have done my best to follow them.

Seems the current 13.7.0 made our tests stop building, namely due to these changes:

-public func be(_ expected: AnyObject?) -> Matcher<AnyObject> {
+public func be<T: AnyObject>(_ expected: T?) -> Matcher<T> {

We have a test checking whether a delegate (of a protocol type) is identical to an expected object:

protocol OurDelegate: AnyObject { }
...
var delegate: (any OurDelegate)?
...
expect(delegate).to(be(someObject))

which is a valid scenario imho.

@younata would it be possible to revert?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions