rescript-lang / rescript-editor-support

Command line to support editor integration for Rescript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't go to definition if the defined let-binding has a type signature

lessp opened this issue · comments

To reproduce, create two files.

A.res and B.res

// A.res
let foo: string => string = text => text
// B.res
A.foo("x")

Go to definition should not work. However, when removing the type signature in file A so that the contents are:

// A.res
let foo = text => text

Go to definition now works as expected.

This was already fixed, coming in the next release.