// pos_selfimp/selfimptest.ww — same-module self-import case. This // file's MODULE tag is "selfimp" (parent dir basename), and it // carries `use selfimp;` — exactly the lib/fmt/fmttest.ww shape that // originally surfaced check_module_shadow's over-trigger on // `fn bsprintf(... fmt: str, ...)`. // // src_imports' self-import skip (u->module == u->str) drops these // entries from the import scan, so the param `selfimp: str` here // must NOT be flagged as shadowing — build + run, exit = 7. use selfimp; fn probe(selfimp: str) i32 = { return selfimp.len; }; export fn main() i32 = { return probe("regress"); };