4 ms·
It often breaks stuff for me when I import two packages with the same name so I use a named import: ``` import "alpha/stuff" import bstuff "beta/stuff" stuff.
by nulld3v 3y ago
It often breaks stuff for me when I import two packages with the same name so I use a named import:
```
import "alpha/stuff"
import bstuff "beta/stuff"
stuff.buyStuff()
bstuff.stuffAnimal()
```
Once the autoformatter sees the named import is unused it removes it. Then when I uncomment my code again the autoformatter doesn't remember that it's supposed to use a named import. So in my example it wouldn't know "bstuff" is actually "beta/stuff".