iter 22b.2.7: missing-superclass-instance diagnostic

This commit is contained in:
2026-05-09 18:18:12 +02:00
parent b252f837af
commit a546c5851c
3 changed files with 118 additions and 0 deletions
+17
View File
@@ -1123,6 +1123,23 @@ fn workspace_error_to_diagnostic(
"second_origin": second_origin,
})),
),
W::MissingSuperclassInstance {
class,
superclass,
type_repr,
} => Some(
ailang_check::Diagnostic::error(
"missing-superclass-instance",
format!(
"instance `{class} {type_repr}` requires superclass instance `{superclass} {type_repr}`, but none was found"
),
)
.with_ctx(serde_json::json!({
"class": class,
"superclass": superclass,
"type": type_repr,
})),
),
}
}