iter 22b.2.5: overriding-non-existent-method diagnostic
This commit is contained in:
@@ -1029,6 +1029,23 @@ fn workspace_error_to_diagnostic(
|
||||
"method": method,
|
||||
})),
|
||||
),
|
||||
W::OverridingNonExistentMethod {
|
||||
class,
|
||||
type_repr,
|
||||
method,
|
||||
} => Some(
|
||||
ailang_check::Diagnostic::error(
|
||||
"overriding-non-existent-method",
|
||||
format!(
|
||||
"instance `{class} {type_repr}` provides body for method `{method}`, but class `{class}` does not declare it"
|
||||
),
|
||||
)
|
||||
.with_ctx(serde_json::json!({
|
||||
"class": class,
|
||||
"type": type_repr,
|
||||
"method": method,
|
||||
})),
|
||||
),
|
||||
W::KindMismatch {
|
||||
class,
|
||||
param,
|
||||
|
||||
Reference in New Issue
Block a user