lang: generic struct head aliases bind the template (fix 0120) — alias-follow from each author's source in head selection; loud unknown-type on the .call type tail
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.
This commit is contained in:
8
examples/expected/0211-generics-struct-alias-head.stdout
Normal file
8
examples/expected/0211-generics-struct-alias-head.stdout
Normal file
@@ -0,0 +1,8 @@
|
||||
field: 3
|
||||
method: 3
|
||||
chain: 11
|
||||
annot: ann
|
||||
helper: 7
|
||||
thing: 42
|
||||
facade: 7
|
||||
facade-annot: qq
|
||||
Reference in New Issue
Block a user