aboutsummaryrefslogtreecommitdiff
path: root/compiler/tests/verifier/statement_for_array.bad
blob: 3d9fad8d19490505fd6e2c08161d356e639239e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

() f() {
    int#[3]#[3] nested = [
        [11,12,13], [21,22,23], [31,32,33]
    ];
    
    int#[3] arr = [1,2,3];
    for bool b in arr { } // ERROR
    
    for int#[2] inner in nested { } // ERROR
}