1
0
Fork 0
forked from koniifer/ableos
This commit is contained in:
mlokr 2024-07-19 13:51:38 +02:00
parent 5a84b2a96d
commit 9eca819d31
2 changed files with 1 additions and 5 deletions

View file

@ -363,7 +363,7 @@ new := fn($Elem: type): Vec(Elem) return Vec(Elem).{ data: @bitcast(0), len: 0,
deinit := fn($Elem: type, vec: ^Vec(Elem)): void {
free(@bitcast(vec.data), vec.cap * @sizeof(Elem), @alignof(Elem));
*vec = new(Elem);
return;
return
}
push := fn($Elem: type, vec: ^Vec(Elem), value: Elem): ^Elem {

View file

@ -431,10 +431,6 @@ impl<'a, 'b> Parser<'a, 'b> {
}
}
if matches!(token.kind, T::Return) {
self.expect_advance(T::Semi);
}
if matches!(token.kind, T::Loop | T::LBrace | T::Fn) {
self.pop_scope(frame);
}