Skip to content

Function calls with this parameter break when using noImplicitSelf #1292

@GlassBricks

Description

@GlassBricks
function foo(this: unknown, val: unknown) {
  print(this, val)
}

foo(3)

In TSTL v1.6.0, when using noImplicitSelf, the foo(3) call gets translated to foo(3) when it should be translated to foo(nil, 3) (the this parameter is explicitly specified).

This doesn't happen in v1.5.0, so I suspect this related to the recent "fix" for noImplicitSelf.

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