Skip to content

Invalid "redefinition" error when importing different symbols from the same module with import from #25397

@arnetheduck

Description

@arnetheduck

Nim Version

022a9c0

Description

from system/ansi_c import c_memchr
from system/ansi_c import CFilePtr
/home/runner/work/Nim/Nim/lib/std/syncio.nim(21, 13) Error: redefinition of 'ansi_c'; previous declaration here: /home/runner/work/Nim/Nim/lib/std/syncio.nim(18, 13)

https://github.com/nim-lang/Nim/actions/runs/20615705942/job/59207969199#step:10:13

Worked around by:

022a9c0

Current Output


Expected Output


Known Workarounds

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions