compiler: load imports and enforce package exports

This commit is contained in:
2026-08-11 22:25:59 +09:00
parent 7bc96b4e03
commit db96422f74
14 changed files with 894 additions and 118 deletions

View File

@@ -1,5 +1,8 @@
//ww:error c "is not a variant of" ww "ambiguous without nominal layout"
// migrated from test/wcc/787_xmod_variant_match.c: a same-leaf variant from a DIFFERENT module is NOT a variant of the scrutinee — guards #13 against bare leaf-strip false-accept.
//ww:error c "is not a variant of" ww "not a variant of scrutinee"
// migrated from test/wcc/787_xmod_variant_match.c: a same-leaf variant from a
// DIFFERENT module is NOT a variant of the scrutinee — guards #13 against bare
// leaf-strip false-accept. Both checkers now resolve the direct qualifier before
// codegen and reject at the case boundary.
package pkg;
export type a = !void;
export type b = !void;