Skip to content

Conversation

@Azatey
Copy link

@Azatey Azatey commented Jan 7, 2017

Trying to create singleton class with static property with instance of the container class will fail due to incorrect transformations:

class Foo {
    static instance = new Foo();
}

will become:

let Foo = class Foo {
    static instance = new Foo(); // Here Foo is not a constructor
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant