Skip to content

Comments before parameters interfere with argument name resolution #371

Open
@robrix

Description

@robrix
let obj = {
    x: 1
};

function func_7(/**/ o) {
    return o;
}

func_7(obj).x;
//          ^ defined: 2

This test fails (but should pass) because the comment steals the parameter's lunch.

🎩 @BekaValentine

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions