tests: [] fixes

pull/4602/head
Alexander Medvednikov 2020-04-26 09:18:29 +02:00
parent 3ab8dc0092
commit 7955181c6c
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
fn main() {
l := []int
l := []int{}
l << 'test'
}

View File

@ -28,7 +28,7 @@ fn test_fmt() {
mut fmt_bench := benchmark.new_benchmark()
keep_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_keep.vv')
expected_input_files := os.walk_ext('$vroot/vlib/v/fmt/tests', '_expected.vv')
mut input_files := []string
mut input_files := []string{}
input_files << keep_input_files
input_files << expected_input_files
fmt_bench.set_total_expected_steps(input_files.len)

View File

@ -1,13 +1,13 @@
const (
x = &Test{}
y = []&Test
z = &[]&Test
y = []&Test{}
z = &[]&Test{}
)
fn test_type_ptr() {
_ := &Test{}
_ := []&Test
_ := &[]&Test
_ := []&Test{}
_ := &[]&Test{}
}
struct Test {