capy-language / capy

🍊 A statically typed, compiled programming language, largely inspired by Jai, Odin, and Zig.
Apache License 2.0
64 stars 4 forks source link

Mutation of local variable of type pointer doesn't work #12

Closed NotAFlyingGoose closed 1 year ago

NotAFlyingGoose commented 1 year ago

Reproduce with:

val := 10;
ptr := ^val;

nval := 42;
nptr := ^nval;

ptr = nptr;

ptr is apparently immutable, this is incorrect behavior