Skip to content

number & { __brand } is not working with the comparison operator in nightly build #11643

Description

declare var x: number & { __brand: any };
x > 0 // <-- [ts] Operator '>' cannot be applied to types 'number & { __brand: any; }' and '0'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Design LimitationConstraints of the existing architecture prevent this from being fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions