Skip to content

Better error message when giving an emtpy string to [@@bs.new] #441

Closed
@abhirmathur

Description

@abhirmathur

Currently supplying an empty string to [@@bs.new] will compile correctly.

external new_rectangle : unit -> rectangleJs.t = "" [@@bs.new] [@@bs.module "@Rectangle"]
let rect = new_rectangle

will compile to
var rect = new Rectangle.()

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