diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out deleted file mode 100644 index 282b59c41a..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.out +++ /dev/null @@ -1,6 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_a.vv:3:13: error: mismatched types `Aaa` and `any_int` - 1 | struct Aaa{} - 2 | fn main() { - 3 | println(Aaa{} / 10) - | ~~~~~ - 4 | } diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.vv b/vlib/v/checker/tests/div_op_wrong_left_type_err_a.vv deleted file mode 100644 index 82984d021d..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_a.vv +++ /dev/null @@ -1,4 +0,0 @@ -struct Aaa{} -fn main() { - println(Aaa{} / 10) -} diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out deleted file mode 100644 index 95289c85cd..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.out +++ /dev/null @@ -1,5 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_b.vv:2:13: error: mismatched types `[]int` and `any_int` - 1 | fn main() { - 2 | println([1,2,3] / 10) - | ~~~~~~~ - 3 | } diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.vv b/vlib/v/checker/tests/div_op_wrong_left_type_err_b.vv deleted file mode 100644 index 4e89fc2a2a..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_b.vv +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println([1,2,3] / 10) -} diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out b/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out deleted file mode 100644 index 5fa08ec077..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.out +++ /dev/null @@ -1,6 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_left_type_err_c.vv:3:13: error: mismatched types `map[string]int` and `any_int` - 1 | fn main() { - 2 | a := map[string]int - 3 | println(a / 10) - | ^ - 4 | } diff --git a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.vv b/vlib/v/checker/tests/div_op_wrong_left_type_err_c.vv deleted file mode 100644 index fca64f9ff8..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_left_type_err_c.vv +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - a := map[string]int - println(a / 10) -} diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out deleted file mode 100644 index ef4d076945..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.out +++ /dev/null @@ -1,6 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_a.vv:3:18: error: mismatched types `any_int` and `Aaa` - 1 | struct Aaa{} - 2 | fn main() { - 3 | println(10 / Aaa{}) - | ~~~~~ - 4 | } diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.vv b/vlib/v/checker/tests/div_op_wrong_right_type_err_a.vv deleted file mode 100644 index b2e48704f2..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_a.vv +++ /dev/null @@ -1,4 +0,0 @@ -struct Aaa{} -fn main() { - println(10 / Aaa{}) -} diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out deleted file mode 100644 index 5f3cf4be71..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.out +++ /dev/null @@ -1,5 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_b.vv:2:18: error: mismatched types `any_int` and `[]int` - 1 | fn main() { - 2 | println(10 / [1,2,3]) - | ~~~~~~~ - 3 | } diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.vv b/vlib/v/checker/tests/div_op_wrong_right_type_err_b.vv deleted file mode 100644 index 5e0186de59..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_b.vv +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println(10 / [1,2,3]) -} diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out b/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out deleted file mode 100644 index 9efda97419..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.out +++ /dev/null @@ -1,6 +0,0 @@ -vlib/v/checker/tests/div_op_wrong_right_type_err_c.vv:3:18: error: mismatched types `any_int` and `map[string]int` - 1 | fn main() { - 2 | a := map[string]int - 3 | println(10 / a) - | ^ - 4 | } diff --git a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.vv b/vlib/v/checker/tests/div_op_wrong_right_type_err_c.vv deleted file mode 100644 index 220a8baeaf..0000000000 --- a/vlib/v/checker/tests/div_op_wrong_right_type_err_c.vv +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - a := map[string]int - println(10 / a) -} diff --git a/vlib/v/checker/tests/div_op_wrong_type_err.out b/vlib/v/checker/tests/div_op_wrong_type_err.out new file mode 100644 index 0000000000..f50520e761 --- /dev/null +++ b/vlib/v/checker/tests/div_op_wrong_type_err.out @@ -0,0 +1,41 @@ +vlib/v/checker/tests/div_op_wrong_type_err.vv:3:13: error: mismatched types `Aaa` and `any_int` + 1 | struct Aaa{} + 2 | fn main() { + 3 | println(Aaa{} / 10) + | ~~~~~ + 4 | println(10 / Aaa{}) + 5 | println([1,2,3] / 10) +vlib/v/checker/tests/div_op_wrong_type_err.vv:4:18: error: mismatched types `any_int` and `Aaa` + 2 | fn main() { + 3 | println(Aaa{} / 10) + 4 | println(10 / Aaa{}) + | ~~~~~ + 5 | println([1,2,3] / 10) + 6 | println(10 / [1,2,3]) +vlib/v/checker/tests/div_op_wrong_type_err.vv:5:13: error: mismatched types `[]int` and `any_int` + 3 | println(Aaa{} / 10) + 4 | println(10 / Aaa{}) + 5 | println([1,2,3] / 10) + | ~~~~~~~ + 6 | println(10 / [1,2,3]) + 7 | a := map[string]int +vlib/v/checker/tests/div_op_wrong_type_err.vv:6:18: error: mismatched types `any_int` and `[]int` + 4 | println(10 / Aaa{}) + 5 | println([1,2,3] / 10) + 6 | println(10 / [1,2,3]) + | ~~~~~~~ + 7 | a := map[string]int + 8 | println(a / 10) +vlib/v/checker/tests/div_op_wrong_type_err.vv:8:13: error: mismatched types `map[string]int` and `any_int` + 6 | println(10 / [1,2,3]) + 7 | a := map[string]int + 8 | println(a / 10) + | ^ + 9 | println(10 / a) + 10 | } +vlib/v/checker/tests/div_op_wrong_type_err.vv:9:18: error: mismatched types `any_int` and `map[string]int` + 7 | a := map[string]int + 8 | println(a / 10) + 9 | println(10 / a) + | ^ + 10 | } diff --git a/vlib/v/checker/tests/div_op_wrong_type_err.vv b/vlib/v/checker/tests/div_op_wrong_type_err.vv new file mode 100644 index 0000000000..fb2f1cdd8f --- /dev/null +++ b/vlib/v/checker/tests/div_op_wrong_type_err.vv @@ -0,0 +1,10 @@ +struct Aaa{} +fn main() { + println(Aaa{} / 10) + println(10 / Aaa{}) + println([1,2,3] / 10) + println(10 / [1,2,3]) + a := map[string]int + println(a / 10) + println(10 / a) +}