iter ctt.3: KindMismatch retire

This commit is contained in:
2026-05-12 22:31:57 +02:00
parent 0e556f085c
commit 0d3f44bee1
6 changed files with 97 additions and 83 deletions
+4 -1
View File
@@ -1425,9 +1425,12 @@ fn check_def(def: &Def, env: &Env) -> Result<()> {
Def::Const(c) => check_const(c, env),
Def::Type(td) => check_type_def(td, env),
// Iter 22b.1: schema-only landing for class/instance defs.
// Class-schema validation (KindMismatch, InvalidSuperclassParam,
// Class-schema validation (InvalidSuperclassParam,
// ConstraintReferencesUnboundTypeVar) and instance-body
// typechecking (with class-method substitution) land in 22b.2.
// ctt.3: KindMismatch retired — the malformed-class-param
// shape now fires BareCrossModuleTypeRef from the canonical-
// form validator instead.
// Workspace-load coherence checks (Orphan / Duplicate /
// MissingMethod) already fire from `workspace::build_registry`,
// so a malformed instance never reaches this point.