leo/tests/compiler/array/nested_3x2_value_fail.leo

13 lines
257 B
Plaintext
Raw Normal View History

2021-05-05 21:25:24 +03:00
/*
namespace: Compile
expectation: Fail
input_file: input/dummy.in
*/
2020-09-03 10:30:57 +03:00
// Multidimensional array syntax in leo
2021-05-05 21:25:24 +03:00
function main(y: bool) -> bool {
const a: [u32; (3, 2)] = [[0; 3]; 2]; // initializer (incorrectly reversed ordering)
2021-05-05 21:25:24 +03:00
return false;
2020-09-03 10:30:57 +03:00
}