Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Comments before parameters interfere with argument name resolution #371

@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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions