Skip to content

@customName is ignored if @noSelf is applied #1528

Description

@aabajyan

I'm currently looking for a solution and if I find anything I will create a pull request

Works without @noSelf attribute
Same issue with @noSelfInFile

https://typescripttolua.github.io/play#code/PQKhAIAEDsHsGUCmAbAZuEwBQATRBjZAQwCdFxoiBbRAZwAcj9yBzaugFyI-IG8twg8KAiR8AV1odYVAHLtwjWrQzYh4VOOj4OAS1jQNRXcgAUASgBc4AG6xdOLAF8sWNjSndEAOlTGz5gDcQA

/** @noSelf */
declare namespace gamestate {
    /** @customName pass */
    function fail(): void
}

gamestate.fail();

Expected:

gamestate.pass()

Got:

gamestate.fail()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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