elm-lens icon indicating copy to clipboard operation
elm-lens copied to clipboard

Reference counting is wrong when multiple modules are imported with the same alias

Open lucamug opened this issue 7 years ago • 0 comments

I have a module that import Tangram with:

import Tangram.Model as Tangram
import Tangram.Types as Tangram
import Tangram.Update as Tangram
import Tangram.View as Tangram

and use

Tangram.subscriptions

that is coming from Tangram.Model

but in Tangram.Model it says that external references are 0 while it should say 1.

Maybe the plug-in is not taking in consideration the multiple import with the same name?

Changing the import to

import Tangram.Model
import Tangram.Types
import Tangram.Update
import Tangram.View

the counting is correct

lucamug avatar Jan 19 '18 15:01 lucamug