Skip to content

Using non-null assertion assertion removes this parameter #1266

@GlassBricks

Description

@GlassBricks

See example here:
https://typescripttolua.github.io/play#code/FAiWDsBcFMCcDMCGBjaACAYgey2g3sGkWgEaKwD8AFAJQBcaAblqACbAC+IyW4AzpDTwcaALxECxUuVqSpxAA6wIkKpAAWoPjULEuXYMKwA6MrFqGcp8gEJaaAPQO0GrWjfhQAGzQB3ddDg7oJ86lgArl6saOBYgiTQQA

The same issue may be true with other "outer expressions", such as parenthesis. However, we have to be careful with casts, as they may change the type of the function being called (e.g. from a non-function type).

Current workaround:
foo.bar!.call(foo)

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