Files
ww/test/wcc/data/modfn_coexist/main.ww

9 lines
399 B
Plaintext

// The imported default qualifier `aa` and package-level declarations occupy
// overlapping Go-style scopes, so the local function deliberately has a
// distinct name. Running to 1+5=6 proves both the local declaration and the
// file-scoped import binding resolve independently.
package main;
import aa;
fn localaa() i32 = { return 1; };
export fn main() i32 = { return localaa() + aa.helper(); };