compiler: load imports and enforce package exports
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user