Fix #806, and also makes sure that things like FOO.x.a is a compile time value.

This commit is contained in:
Christoffer Lerno
2023-07-01 16:28:22 +02:00
parent 9102fc6032
commit 70ea6ce04b
8 changed files with 131 additions and 12 deletions

View File

@@ -82,8 +82,8 @@ fn void LinkedList.link_last(LinkedList* list, Type value) @private
list.size++;
}
fn Type! peek(LinkedList* list) => list.first() @inline;
fn Type! peek_last(LinkedList* list) => list.last() @inline;
fn Type! LinkedList.peek(LinkedList* list) => list.first() @inline;
fn Type! LinkedList.peek_last(LinkedList* list) => list.last() @inline;
fn Type! LinkedList.first(LinkedList *list)
{