Skip to content

reduce name collisions #10425

Closed
Closed
@aappddeevv

Description

@aappddeevv

Minimized example

trait Props extends js.Object { var basename: js.UndefOr[String] = js.undefined }

def basename(bname: js.UndefOr[String], children: ReactNode*) =
   createElement(JS, new Props { basename = bname }, children: _*)

Output

 [error] |Reference to basename is ambiguous

Expectation

Expectation is that this error should only occur if the name collision is because the name can be assigned to. Otherwise, it should assume that basename belongs to the data structure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions