feat: add assoc func quickfix for unresolved_method diagnostic

This commit is contained in:
Young-Flash 2023-12-12 20:24:33 +08:00 committed by Young-Flash
parent 34df29620a
commit 69410bb488
5 changed files with 139 additions and 9 deletions

View file

@ -217,6 +217,7 @@ pub enum InferenceDiagnostic {
name: Name,
/// Contains the type the field resolves to
field_with_same_name: Option<Ty>,
assoc_func_with_same_name: Option<AssocItemId>,
},
// FIXME: This should be emitted in body lowering
BreakOutsideOfLoop {