This commit is contained in:
mlokr 2024-07-19 13:51:38 +02:00
parent ab903fa4ea
commit 4dcaae8362
No known key found for this signature in database
GPG key ID: DEA147DDEE644993
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);
}