// c.c typedef struct /* S_ */ { int i; } S; void foo(const S s) {} // d.d import c; void main() { S s; foo(s); } Error: function `c.foo(__tag46 s)` is not callable using argument types `(__tag45)` cannot pass argument `s` of type `__tag45` to parameter `__tag46 s` Same issue if the parameter is 'const S *'. The following are workarounds: a) Uncomment S_ in c.c b) Remove 'const' from the parameter
I cannot reproduce this.
Yes, works with 2.101.2.