Skip to content

Wrong output for inlined object accessor #658

@chenglou

Description

@chenglou

Repro:

type greeting = <hi: int>;
external obj: Js.t greeting = "{hi: 1}" [@@bs.val];
external setHi : Js.t greeting => int => unit = "hi" [@@bs.set];
setHi obj 2;

Output:

{hi: 1}.hi = 2;

Needs parentheses.

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