18 lines
640 B
Plaintext
18 lines
640 B
Plaintext
// pos_crossmod — cur_mod-filtering positive. Replaces the abolished
|
|
// pos_selfimp (self-import is hard-rejected post-#16). This module
|
|
// (paramshadowmod) imports `shadowmod`, and the bundle also pulls module
|
|
// `crossmod`, whose probe() has a param named `shadowmod`. crossmod does
|
|
// NOT import shadowmod, so the shadow rule — filtered by the binding's
|
|
// own module — must NOT trip crossmod's param, even though a sibling
|
|
// module in the same bundle imports that leaf. Build + run; exit = 2.
|
|
|
|
package main;
|
|
|
|
import shadowmod;
|
|
import crossmod;
|
|
|
|
export fn main() i32 = {
|
|
let _ = shadowmod.say();
|
|
return crossmod.probe("hi");
|
|
};
|