diff --git a/vlib/v/checker/tests/like_operator_outside_orm_error.out b/vlib/v/checker/tests/like_operator_outside_orm_error.out index ccc6cd4e8a5716..9860b1d49725bd 100644 --- a/vlib/v/checker/tests/like_operator_outside_orm_error.out +++ b/vlib/v/checker/tests/like_operator_outside_orm_error.out @@ -1,6 +1,7 @@ -vlib/v/checker/tests/like_operator_outside_orm_error.vv:4:15: error: unexpected name `like`, expecting `)` +vlib/v/checker/tests/like_operator_outside_orm_error.vv:3:14: error: only `c`, `r`, `js` are recognized string prefixes, but you tried to use `like` + 1 | fn main() { 2 | name := 'Luke' - 3 | - 4 | println(name like 'L%') - | ~~~~ + 3 | ret := name like 'L%' + | ~~~~ + 4 | println(ret) 5 | } diff --git a/vlib/v/checker/tests/like_operator_outside_orm_error.vv b/vlib/v/checker/tests/like_operator_outside_orm_error.vv index a5d0e006839835..9b95bea1b5ae68 100644 --- a/vlib/v/checker/tests/like_operator_outside_orm_error.vv +++ b/vlib/v/checker/tests/like_operator_outside_orm_error.vv @@ -1,5 +1,5 @@ fn main() { name := 'Luke' - - println(name like 'L%') + ret := name like 'L%' + println(ret) }