Closed Karambir06 closed 10 months ago
For reference swift has a pretty clear message:
Cannot pass immutable value as inout argument: literals are not mutable
To repro:
func test(i : inout Int) { print(i); } func foo() { test(i: 3) }
Originally posted by @ssteinbach in https://github.com/ziglang/zig/issues/16069#issuecomment-1595766910
Again compile this code
With Visual Studio code with blackbox ai extension. You will definitely find a sol
For reference swift has a pretty clear message:
To repro:
Originally posted by @ssteinbach in https://github.com/ziglang/zig/issues/16069#issuecomment-1595766910