Fix in nested block handling. @maydiscard and @nodiscard annotations. If the common type of int[x] and int[y] is int[]

This commit is contained in:
Christoffer Lerno
2022-07-17 19:23:42 +02:00
committed by Christoffer Lerno
parent 4beb7eff8f
commit 6cf3c9f46b
21 changed files with 787 additions and 612 deletions

View File

@@ -196,7 +196,7 @@ fn void String.destroy(String* str)
if (!*str) return;
StringData* data = str.data();
if (!data) return;
data.allocator.free(data);
data.allocator.free(data)!!;
*str = (String)null;
}