Skip to content

Delayed import with forward declared procedure does not create valid C #23959

Open
@beef331

Description

@beef331

Description

# Module main
proc doThing*()
import sub
proc doThing*() = echo "hmm"

# module sub.nim
import main
doThing()

Nim Version

2.0.8 and devel

Current Output

error: implicit declaration of function ‘doThing__a_u1’ [-Wimplicit-function-declaration]
   74 |         nimlf_(2, "/tmp/b.nim");        doThing__a_u1();

Expected Output

No response

Possible Solution

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions