leo/tests/compiler/array/nested_3x2_value_fail.leo
2021-05-05 21:25:24 +03:00

13 lines
257 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file: input/dummy.in
*/
// Multidimensional array syntax in leo
function main(y: bool) -> bool {
const a: [u32; (3, 2)] = [[0; 3]; 2]; // initializer (incorrectly reversed ordering)
return false;
}