You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#+vet explicit-allocators
package main
main :: proc () {
_ = make([]u8, 5, allocator = context.allocator)
}
Expected
No error
Actual
D:/Programming/odin_test/main.odin(4:6) Error: Parameter 'allocator' of type 'Allocator' must be explicitly provided in procedure call
_ = make([]u8, 5, allocator = context.allocator)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Notes
works when allocator = is removed
appears to only occur with builtins (such as delete), and it works for other procedures (such as json.unmarshal)