ww imports: require imports before declarations

This commit is contained in:
2026-08-21 19:20:52 +09:00
parent b03bbb1428
commit ee4573bf55
9 changed files with 730 additions and 8 deletions

View File

@@ -20,8 +20,9 @@ package sepimport_test;
//
// declns (#23/#30 modfn leg) — a distinct local `fn localaa` and the
// file-scoped imported qualifier aa both resolve (exit 6 = localaa() +
// aa.helper()); the _vbu layout flips declaration/import order and must stay
// byte-identical on {aa.s,aa.wwi,__root.s}; __root.s carries both calls.
// aa.helper()); the _vbu layout reorders the valid declarations after its
// import and must stay byte-identical on {aa.s,aa.wwi,__root.s}; __root.s
// carries both calls.
//
// slttypepref (#58/#50 c1) — scopelookuptype must prefer the current
// module's SK_TYPE when a param shadows a type leaf two modules both