Skip to content

Class getter issues #845

@cipherxof

Description

@cipherxof

I have something similar to the following:

const test = new TestCase();
console.log(test.name);

const itm = new TestItem();
console.log(itm.name);

The problem is test.name actually calls TestItem's getter method. The same code works properly with standard TypeScript. You can see it running properly with a full test case on the TypeScript Playground.

I am using TSTL 0.32.0 with TypeScript 3.8.3. The code works fine with 0.31.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions