1
0
This commit is contained in:
Jeff 2024-12-03 16:16:26 -05:00
parent 623f3b7812
commit df4d0b1d73

View File

@ -691,8 +691,8 @@ impl<'src> Compiler<'src> {
)?;
}
Token::Minus | Token::MinusEqual => {
Compiler::expect_addable_type(&right_type, &right_position)?;
Compiler::expect_addable_types(
Compiler::expect_subtractable_type(&right_type, &right_position)?;
Compiler::expect_subtractable_types(
&left_type,
&left_position,
&right_type,