shadowing

This commit is contained in:
Laytan Laats
2026-07-26 17:31:57 +02:00
parent 0c17544322
commit a17aefac58

View File

@@ -39,9 +39,11 @@ _locations_destroy :: proc(locations: []Location, allocator: runtime.Allocator)
@(private="package")
_resolve :: proc(bt: Capture, allocator, temp_allocator: runtime.Allocator) -> (out: []Location, err: Resolve_Error) {
mem_err: runtime.Allocator_Error
out, mem_err = make([]Location, len(bt), allocator)
if mem_err != nil { return nil, .Allocator_Error }
{
mem_err: runtime.Allocator_Error
out, mem_err = make([]Location, len(bt), allocator)
if mem_err != nil { return nil, .Allocator_Error }
}
defer if err != nil { _locations_destroy(out, allocator) }