Skip to content

[bsc] Generated .rei files changed function name #3094

Description

@wyze

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

Source

typeex;
[@bs.val] externalexpect: Dom.element=>ex="";
[@bs.get] externalnot_: ex=>ex="not";

Command

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

Output

typeex;
[@bs.val] externalexpect: Dom.element=>ex="";
[@bs.get] externalnot__: 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

typeex;
[@bs.val] externalexpect: Dom.element=>ex="";
[@bs.get] externalnot_: 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