Skip to content

Modifiers are not allowed on class members inside a function #3703

Description

@JsonFreeman

There is an error on the use modifiers in a local class definition.

function f() {
    class C {
        static foo() { } // Modifiers cannot appear here.
        public bar() { } // Modifiers cannot appear here.
    }
}

Ditto for class expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions