aDotInTheVoid / skate

Skateboard for the mind
Apache License 2.0
2 stars 0 forks source link

Array index len is taken before index/rhs is calulated, which may mutate the array #44

Closed aDotInTheVoid closed 3 years ago

aDotInTheVoid commented 3 years ago
fn main () {
    let a = [1,2,3];
    a[3] = {
        a = [1,2,3,4];
        77
    };
    print a
}
fn main() {
    let a = [];
    print a[{
        a = [1];
        0
    }];
}

Both error, but should pass.

CC #43, this is a mess