mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix some byte->rune errors
This commit is contained in:
parent
fa3e95222e
commit
f73506be49
@ -19,7 +19,7 @@ vlib/v/checker/tests/in_mismatch_type.vv:16:7: error: the data type on the left
|
||||
| ~~
|
||||
17 | println('dope')
|
||||
18 | }
|
||||
vlib/v/checker/tests/in_mismatch_type.vv:19:9: error: the data type on the left of `in` must be a string (is `byte`)
|
||||
vlib/v/checker/tests/in_mismatch_type.vv:19:9: error: the data type on the left of `in` must be a string (is `rune`)
|
||||
17 | println('dope')
|
||||
18 | }
|
||||
19 | if `a` in s {
|
||||
|
@ -1,4 +1,4 @@
|
||||
vlib/v/checker/tests/match_expr_and_expected_type_error.vv:2:1: error: cannot use type `byte` as type `string`
|
||||
vlib/v/checker/tests/match_expr_and_expected_type_error.vv:2:1: error: cannot use type `rune` as type `string`
|
||||
1 | ch := `a`
|
||||
2 | match ch {
|
||||
| ~~~~~~~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user