Skip to content

Static getter executed on class inheritance #8420

@casser

Description

@casser

TypeScript Version:

1.7.5 / 1.8.0-beta / nightly (1.9.0-dev.20160217)

Code

class A{
    public static get foo(){
        return alert("should not execute getter, without accessing it !");
    }
}
class B extends A {}

Expected behavior:

Should not alert message above

Actual behavior:

Alerting message above

Link to Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    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