Skip to content

Error in inlining with object field access: the bound variable is not substituted in the generated code. #1728

@cristianoc

Description

@cristianoc

This progam

let foo x = int_of_string x != 3 let badInlining obj = if (foo obj##field) then ()

compiles to

var Caml_format = require('bs_caml_format'); function foo(x) { return +(Caml_format.caml_int_of_string(x) !== 3); } function badInlining() { Caml_format.caml_int_of_string(x) !== 3; return /* () */0; }

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions