Skip to content

Missing go to module definition in first class modules and functors #304

Open

Description

@alarbada

To reproduce with rescript 9.1.4:

module type Database = {
  let query: string => unit
}

module MakeHandler = (Db: Database) => { // Go to definition here fails, when it clearly compiles 
  let handle = (str1, str2) => {
    Db.query("select * from what")

    Js.log(str1)
    Js.log(str2)
  }
}

module Handler = MakeHandler({
  let query = str => Js.log(str)
})

let handler = (module(DB: Database)) => { // Also fails
  DB.query("asdfasdfads asd fadsf as")
}

Activity

  1. cristianoc commented on Oct 1, 2021

    @cristianoc
    Collaborator

    Currently there's no processing of module types, in particular no jump to definition.

  2. added
    enhancement
    on May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions