Files
ww/test/wcc/data/paramshadowmod/pos_rename.ww

17 lines
358 B
Plaintext

// pos_rename — positive case. The fn param is renamed away from the
// imported module's bareword, so the rule doesn't fire and the body
// can call `shadowmod.say()` cleanly. Built + run; exit code = 42.
package main;
import shadowmod;
fn probe(s: str) i32 = {
let _ = s;
return shadowmod.say();
};
export fn main() i32 = {
return probe("hi");
};