Skip to content

Cannot instantiate extended native classes using the "new" keyword #3

Description

@darind

Extend a native class:

var ButtonEditorHelper = /** @class */ (function (_super) {
    __extends(ButtonEditorHelper, _super);
    function ButtonEditorHelper() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return ButtonEditorHelper;
}(NSObject));

and try to create an instance of it using the "new" keyword:

var helper = new ButtonEditorHelper();

Currently the only supported way to instantiate this class is using the following:

var helper = ButtonEditorHelper.alloc().init();

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions