Skip to content

Incorrect left-hand optional chain assignment crashes compiler #1044

@GlassBricks

Description

@GlassBricks

With foo?.bar = "baz", this is invalid typescript, and typescript reports an error (TS2779). However, running tstl 0.41.0 crashes the compiler instead of reporting an error (stops watch mode).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions