mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
feat: implement And
type overloading
This commit is contained in:
parent
068ffcc34f
commit
0e8dee3cbf
8 changed files with 125 additions and 13 deletions
|
@ -924,6 +924,10 @@ pub trait ErrorDisplay {
|
|||
for sub_msg in &core.sub_messages {
|
||||
msg += &sub_msg.format_code_and_pointer(self, color, gutter_color, mark, chars);
|
||||
}
|
||||
if core.sub_messages.is_empty() {
|
||||
let sub_msg = SubMessage::ambiguous_new(self.core().loc, vec![], None);
|
||||
msg += &sub_msg.format_code_and_pointer(self, color, gutter_color, mark, chars);
|
||||
}
|
||||
msg += &core.kind.to_string();
|
||||
msg += ": ";
|
||||
msg += &core.main_message;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue