checker: merge minus_op_wrong_type_err tests to just one (#7489)
parent
b08fe73614
commit
8f4281b790
|
@ -1,6 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,4 +0,0 @@
|
|||
struct Aaa{}
|
||||
fn main() {
|
||||
println(Aaa{} - 10)
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,3 +0,0 @@
|
|||
fn main() {
|
||||
println([1,2,3] - 10)
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,4 +0,0 @@
|
|||
fn main() {
|
||||
a := map[string]int
|
||||
println(a - 10)
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,4 +0,0 @@
|
|||
struct Aaa{}
|
||||
fn main() {
|
||||
println(10 - Aaa{})
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,3 +0,0 @@
|
|||
fn main() {
|
||||
println(10 - [1,2,3])
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
vlib/v/checker/tests/minus_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 | }
|
|
@ -1,4 +0,0 @@
|
|||
fn main() {
|
||||
a := map[string]int
|
||||
println(10 - a)
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
vlib/v/checker/tests/minus_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/minus_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/minus_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/minus_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/minus_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/minus_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 | }
|
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue