1
0
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:
Delyan Angelov 2020-08-27 12:08:05 +03:00
parent fa3e95222e
commit f73506be49
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ vlib/v/checker/tests/in_mismatch_type.vv:16:7: error: the data type on the left
| ~~ | ~~
17 | println('dope') 17 | println('dope')
18 | } 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') 17 | println('dope')
18 | } 18 | }
19 | if `a` in s { 19 | if `a` in s {

View File

@ -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` 1 | ch := `a`
2 | match ch { 2 | match ch {
| ~~~~~~~~~~ | ~~~~~~~~~~