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

13 lines
332 B
Plaintext

// Legacy neg_let, now a positive declaration-point case. The initializer
// resolves shadowmod.say through the file-scope import; after the declaration
// shadowmod denotes the closer i32 binding. Builds and runs 42.
package main;
import shadowmod;
fn main() i32 = {
let shadowmod: i32 = shadowmod.say();
return shadowmod;
};