Skip to content

Wrong static super call #1504

Description

@pilaoda

https://typescripttolua.github.io/play/#code/FAYwNghgzlAECCsDexZtlALhTBLEsA4gKaYAUAlMqurQE6kCudAdrAETzsDcNaAvsEGhIMWACFYxAB6ZiLACZxEKWlhz4ipStVr0mrDIwAOxOgDoS5KgGoO4nn1iDBQA

function B.Get(self)
    return A.prototype.Get(self) .. "B"
end

shouldn't call super function in prototype, expect result is:

function B.Get(self)
    return A.Get(self) .. "B"
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions