mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Show error when declarations do not start with fn in interfaces. #1565. Some added functionality to lists and time.
This commit is contained in:
@@ -245,6 +245,11 @@ fn Type! LinkedList.pop(&self)
|
||||
return self._last.value;
|
||||
}
|
||||
|
||||
fn bool LinkedList.is_empty(&self)
|
||||
{
|
||||
return !self._first;
|
||||
}
|
||||
|
||||
fn Type! LinkedList.pop_front(&self)
|
||||
{
|
||||
if (!self._first) return IteratorResult.NO_MORE_ELEMENT?;
|
||||
|
||||
Reference in New Issue
Block a user