Skip to content

Handle ambiguous object unions #178

Description

@kossnocorp

This kind of union would trip parsers like Serde. TypeScript would ignore it as they are structurally equal, but for the rest, we need to find a solution.

First: { id: int }

Second: { id: int }

Result: First | Second

Ideally, the type checker must detect ambiguous unions and produce a type error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Aspect: Type CheckerType checker aspect. Anything related to the module checked by the type system.Kind: Feature 🎉A new product featureProp: DXDeveloper experience improvements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions