mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: unwrap const() blocks
This commit is contained in:
parent
399af6768d
commit
f09826e928
436 changed files with 10448 additions and 11207 deletions
|
@ -352,9 +352,7 @@ fn test_reverse() {
|
|||
assert f.len == 0
|
||||
}
|
||||
|
||||
const (
|
||||
c_n = 5
|
||||
)
|
||||
const c_n = 5
|
||||
|
||||
struct Foooj {
|
||||
a [5]int // c_n
|
||||
|
@ -1288,12 +1286,10 @@ fn test_push_arr_string_free() {
|
|||
assert lines[1] == 'ab'
|
||||
}
|
||||
|
||||
const (
|
||||
grid_size_1 = 2
|
||||
grid_size_2 = 3
|
||||
grid_size_3 = 4
|
||||
cell_value = 123
|
||||
)
|
||||
const grid_size_1 = 2
|
||||
const grid_size_2 = 3
|
||||
const grid_size_3 = 4
|
||||
const cell_value = 123
|
||||
|
||||
fn test_multidimensional_array_initialization_with_consts() {
|
||||
mut data := [][][]int{len: grid_size_1, init: [][]int{len: grid_size_2, init: []int{len: grid_size_3, init: cell_value}}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue