iter 22b.2.4: constraint-references-unbound-type-var diagnostic
This commit is contained in:
@@ -1068,6 +1068,25 @@ fn workspace_error_to_diagnostic(
|
||||
"got_type": got_type,
|
||||
})),
|
||||
),
|
||||
W::UnboundConstraintTypeVar {
|
||||
class,
|
||||
method,
|
||||
constraint_class,
|
||||
var,
|
||||
} => Some(
|
||||
ailang_check::Diagnostic::error(
|
||||
"constraint-references-unbound-type-var",
|
||||
format!(
|
||||
"in class `{class}` method `{method}`: constraint `{constraint_class} {var}` references unbound type variable `{var}`"
|
||||
),
|
||||
)
|
||||
.with_ctx(serde_json::json!({
|
||||
"class": class,
|
||||
"method": method,
|
||||
"constraint_class": constraint_class,
|
||||
"var": var,
|
||||
})),
|
||||
),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user