- Passing a compile time type implicitly converted to a typeid would crash instead of producing an error. #2568

This commit is contained in:
Christoffer Lerno
2025-11-08 22:17:58 +01:00
parent 7063e684ba
commit 0da6bf4455
5 changed files with 25 additions and 8 deletions

View File

@@ -532,7 +532,8 @@ fn bool List.remove_first_item(&self, Type value) @if(ELEMENT_IS_EQUATABLE)
fn usz List.remove_item(&self, Type value) @if(ELEMENT_IS_EQUATABLE)
{
usz old_size = self.size;
defer {
defer
{
if (old_size != self.size) self._update_size_change(old_size, self.size);
}
return list_common::list_remove_item(self, value);