mbuscemi / elm-lens

Elm code visualizations for maximum productivity in Atom
https://atom.io/packages/elm-lens
MIT License
51 stars 2 forks source link

Type usages are ignored in let-expression #14

Closed stil4m closed 6 years ago

stil4m commented 6 years ago

For example in the following file:

module Test exposing (foo)

type alias Thing =
    { x : Int
    }

foo : Int -> Int
foo x =
    let
        f : Thing
        f =
            { x = x }
    in
    f.x

Thing is annotated with 0 internal references, while it is being used within a let expression in foo.

I'm using version 0.1.2 of elm-lens.

mbuscemi commented 6 years ago

@stil4m Can you please confirm that this is fixed for you in v0.2.0?

stil4m commented 6 years ago

Tested in 0.2.0 and it is fixed 👍