Skip to content

False positive dependency cycle when a module refers to another of the same name #2249

Closed
@bcc32

Description

@bcc32

Consider the following two files:

import.ml

module Foo = struct end

foo.ml

open! Import

include Foo

The regular compiler handles this pair fine, but building with BuckleScript gives the folowing error:

$ bsb -make-world
ninja: Entering directory `lib/bs'
[4/4] Building src/import.mlast.d
ninja: error: dependency cycle: src/foo.cmj -> src/foo.cmj

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