Skip to content

Incorrectly parse "from" in a function parameter #2128

@yuit

Description

@yuit

In one our test suit, when users use "from" as a name of function parameter, the compiler parses it incorrectly and report "Parameter declaration expected" .

class C {
    public foo(from:any) {}
}

The compiler will report "error TS1138: Parameter declaration expected" at "from"

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