Skip to content

comparison of units differs #1759

Description

@jmid

Consider the following program comparing two units:

  let i:int =
    (compare (print_string "") ())
  in print_int i

$ ./node_modules/bs-platform/bin/bsc.exe printcompare.ml
$ ocamlc -o ./printcompare.byte ./printcompare.ml
$ node printcompare.js
1$ ./printcompare.byte
0$

This is with BuckleScript 1.8.0 (Using OCaml4.02.3+BS )
but also confirmed on BuckleScript 1.7.4 (Using OCaml4.02.3+BS )
running under Node v6.10.3 on Mac OS X.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions