Fixed type shadowing error#2967
Fixed type shadowing error#2967garyb merged 4 commits intopurescript:masterfrom LightAndLight:issue-2197
Conversation
|
Note for later: This hasn't accounted for a case like the following: I think in this case only number should be imported from |
|
Can you add a test to see what happens when you add |
|
I will get back to you in a few hours, but if |
|
@garyb Could you please review this again? |
|
Sorry about the delay on this, I'll definitely take a look this weekend. I'm sure it is fine, I just want to better understand for myself what's going on too 😄 |
* Fix and regression tests for #2197 * Updated Prim module documentation * Added test using Record type * Added some peace-of-mind tests
Fixes #2197
Primwas being imported unqualified to every single module. I changedaddDefaultImportto only add an unqualified import if the module-to-import has not already been imported qualified. I think this is in line with the behaviour that the person who raised the issue expected.