Open typeless opened 2 years ago
Update: My description of the issue was inaccurate. It seems to be that
A
makes calls to a generic function g
defined in pkg B
. The generic function g
makes calls to a internal function f
defined in the same pkg B
.g
is imported into the pkg A
, it's expanded in the pkg A
. But in the instantiated g
in A
, it cannot see the function f
defined internally in B
.
This seems to happen only when the caller of the trait, the trait definition and the impl definition are all in different modules.
Here is a repro https://github.com/typeless/myr-bug/blob/main/c.myr#L12