feat(pbs): add parametric arrays and concrete generic contracts
Support explicit contract type parameters, canonical nominal applications, recursive substitution, concrete implementations and instantiated editor views. Complete parametric Array syntax and contextual construction integration. Preserve type origins across imports and reexports, fix trait argument stack order, and relocate global slots before lifecycle assembly. Publish specs, installed examples and consolidated discussion lessons. Validate frontend, common pipeline, architecture, LSP and installed knowledge gates, plus the full production VM conformance corpus with 14 generic fixtures.
This commit is contained in:
+7
@@ -556,3 +556,10 @@ dot and signature help during incomplete arguments. An unrelated parse error MUS
|
||||
NOT invalidate a recoverable receiver. Unknown or ambiguous receivers MUST NOT
|
||||
invent a type or overload. Indexing/operator-produced receivers are outside the
|
||||
new coverage; existing behavior MUST NOT regress.
|
||||
|
||||
|
||||
## Parameterized contracts
|
||||
|
||||
A barrel exports a parameterized contract declaration with the same ordered parameters as its source declaration. Imported bindings retain the original declaration and lexical source scope, including aliases in signatures of dependencies. A local alias never creates another nominal type. Implementations remain in the declaring module of the concrete struct/service owner.
|
||||
|
||||
See [PBS generic contracts](../../../compiler/pbs/specs/generic-contracts.md).
|
||||
|
||||
Reference in New Issue
Block a user