Implement reusable interface conformance rules

This commit is contained in:
Timothy J. Aveni
2026-09-23 00:17:13 -07:00
parent 20e9f4b056
commit 8455599c3c
14 changed files with 2387 additions and 1638 deletions
+2 -1
View File
@@ -34,6 +34,7 @@ export class GenericSourceTypes {
readonly applications = new Map<string, InterfaceRevision>();
readonly aliases = new Map<string, ValueAliasDefinition>();
parameters = new Map<string, TypeParameter>();
bindings = new Map<string, ClosedTypeArgument>();
self?: AtomId;
private active: string[] = [];
private applicationCount = 0;
@@ -42,7 +43,7 @@ export class GenericSourceTypes {
environment(): GenericTypeEnvironment {
return {
arguments: new Map(),
arguments: this.bindings,
aliases: this.aliases,
self: this.self,
applyInterface: (id, args) => this.apply(id, args).revisionId,