Skip to content

bad compiler exception when raising duplicate imports of stdlib #4603

@cyberthirst

Description

@cyberthirst

Version Information

  • vyper Version (output of vyper --version): b635696

What's your issue about?

as per Anatomist:

$ vyper test.vy
Error compiling: test.vy
vyper.exceptions.DuplicateImport: lib imported more than once!
contract "test.vy:1",
 line 1:0 --->
 1 import lib
-------^
2 import lib

$ vyper test.vy
Error compiling: test.vy vyper.exceptions.NamespaceCollision: 'math' has already been
declared as a ModuleInfo(module_t=/path/to/math.vy, alias=' math', ownership=<ModuleOwnership.NO_OWNERSHIP: 'no_ownership '>, ownership_decl=None)
contract "test.vy:2", line 2:0
1 import math
---> 2 import math
-------^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions