Closed
Description
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.