BoxAlias :: Box; / Box :: r.Box; now resolve instantiation, methods,
annotations, and chains through the aliased template, and re-export one
flat-import level as ordinary own decls (the facade shape the std.sx
restructure needs). selectGenericStructHead consults aliasedStructTemplate
(nominal.zig) before the global template map — own-wins/single-flat alias
author, each hop pinned to the alias author's source, ns.X RHS through
namespaceAliasVerdictFrom, depth-capped. resolveTypeCallWithBindings'
silent .unresolved tail (panicked in LLVM emission) now diagnoses
"unknown type". Also aligns the stale pre-existing calls.test.zig UFCS
plan test with the opt-in model (a47ea14). Regression: examples/0211
(+rich/+facade). Gates: zig build test 426/426, suite 587/587.
10 lines
283 B
Plaintext
10 lines
283 B
Plaintext
// Companion of 0211: the re-export facade — own alias decls over another
|
|
// module's members. Flat importers of THIS file see the aliases bare.
|
|
#import "modules/std.sx";
|
|
|
|
r :: #import "0211-generics-struct-alias-head-rich.sx";
|
|
|
|
helper :: r.helper;
|
|
Thing :: r.Thing;
|
|
Box :: r.Box;
|