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

18 lines
415 B
Plaintext

// Legacy neg_mlet, now a positive tuple-binding case. The selector use before
// the destructure belongs to the import; afterward shadowmod is the first
// tuple element. Builds and runs 42 + 1 + 2 = 45.
package main;
import shadowmod;
fn pair() (i64, i64) = {
return 1i64, 2i64;
};
fn main() i32 = {
let anchor: i32 = shadowmod.say();
let (shadowmod, x) = pair();
return anchor + (shadowmod + x): i32;
};