mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
insert_at incorrectly prevented inserts at the end of a list.
This commit is contained in:
@@ -240,7 +240,7 @@ fn void List.push_front(&self, Type type) @inline
|
||||
}
|
||||
|
||||
/**
|
||||
* @require index < self.size
|
||||
* @require index <= self.size
|
||||
**/
|
||||
fn void List.insert_at(&self, usz index, Type type)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@
|
||||
- Bug converting untyped list #1360.
|
||||
- Benchmark / test no longer suppresses debug info. #1364.
|
||||
- Bug when compile time subtracting a distinct type.
|
||||
- `insert_at` incorrectly prevented inserts at the end of a list.
|
||||
|
||||
### Stdlib changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user