Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

AnyEncodable conformance to Equatable #9

@stefanprutianu

Description

@stefanprutianu

Hi @mattt,

I was exploring your project and I have a short question.

Am I assuming incorrectly that the assertion bellow should hold?

let t0: AnyEncodable = ["x": 1]
let t1: AnyEncodable = ["x": 1]

assert(t0 == t1, "These should be equal")

I've read the conformance of AnyEncodable to Equatable and it's not clear to me if my expectations are wrong or there's something missing.

Thanks,
Stefan

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