Skip to content

reason oprinter broken for not_ #2273

@bobzhang

Description

@bobzhang

moved from rescript-lang/rescript#3094 (cc @wyze)

This was working correctly in bs-platform 4.0.5, but started running into this when I upgraded to 4.0.6.

Source

type ex;
[@bs.val] external expect: Dom.element => ex = "";
[@bs.get] external not_: ex => ex = "not";

Command

$ bsc -bs-re-out lib/bs/src/File.cmi > src/File.rei

Output

type ex;
[@bs.val] external expect: Dom.element => ex = "";
[@bs.get] external not__: ex => ex = "not";

Error

[2/3] Building src/JestDom.cmj

  We've found a bug for you!
  /Users/neil/Projects/personal/bs-jest-dom/src/JestDom.re

  The implementation src/JestDom.mlast
       does not match the interface src/jestDom.cmi:
       The value `not__' is required but not provided

error Command failed with exit code 2.

Expected

type ex;
[@bs.val] external expect: Dom.element => ex = "";
[@bs.get] external not_: ex => ex = "not";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions