X Tutup
Skip to content

Wrong not-falsy assumption when using generics #1184

@GlassBricks

Description

@GlassBricks

See here:

https://typescripttolua.github.io/play#code/FDBmFcDsGMBcEsD2kAEAHe0DWAeAKgHwAUAhgFwoBGiiANgKYmQA0VFer07AlOwN7AUQgE71Y4YahIoA-FRQVowAL4hoyAM516AOlqIA5kQzYisYeHqsoAE3qh4kejdYAiSIjT1X3bsCA

When a generic type, ternary expressions and null coalescing (and possibly others) are generated incorrectly (assuming that the left argument cannot be falsy).

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

      X Tutup