iter 22b.2.7: missing-superclass-instance diagnostic
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user