v2 / vlib / v / tests / consts / const_indexexpr_dep_test.v
7 lines · 6 sloc · 113 bytes · f1772370373e1bcb214ff9977d5d5b7382984fb3
Raw
1const array1 = [1]
2const array2 = [array1]
3const array3 = array2[0]
4
5fn test_main() {
6 assert array3 == array1
7}
8