// 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
Comment #1 by razvan.nitu1305 — 2023-02-03T09:30:25Z