Skip to content

Commit a819b7b

Browse files
authored
checker: update fixture outputs (#27155)
1 parent dff5b1e commit a819b7b

5 files changed

Lines changed: 22 additions & 22 deletions
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:15:16: notice: `ja` is immutable, cannot have a mutable reference to an immutable object
2-
13 | fn main() {
3-
14 | ja := User{name: 'foo'}
4-
15 | mut x := rere(ja)
1+
vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:17:16: notice: `ja` is immutable, cannot have a mutable reference to an immutable object
2+
15 | name: 'foo'
3+
16 | }
4+
17 | mut x := rere(ja)
55
| ~~
6-
16 | x.name = 'bar'
7-
17 | }
8-
vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:16:4: error: `x.name` aliases mutable data from an immutable value
9-
14 | ja := User{name: 'foo'}
10-
15 | mut x := rere(ja)
11-
16 | x.name = 'bar'
6+
18 | x.name = 'bar'
7+
19 | }
8+
vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:18:4: error: `x.name` aliases mutable data from an immutable value
9+
16 | }
10+
17 | mut x := rere(ja)
11+
18 | x.name = 'bar'
1212
| ~~~~
13-
17 | }
13+
19 | }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
vlib/v/checker/tests/fixed_array_new_syntax_size_mismatch_err.vv:2:13: error: fixed array expects 2 value(s), but got 3
22
1 | fn main() {
3-
2 | _ := [2]int[1 2 3]
4-
| ~~~~~~~
3+
2 | _ := [2]int[1, 2, 3]
4+
| ~~~~~~~~~
55
3 | }
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
vlib/v/checker/tests/if_smartcast_mutation_err.vv:5:3: error: cannot mutate `a` in a non-mut smartcast, use `if mut a ...`
2-
3 | a := SmartcastValue(1)
3-
4 | if a is int {
4-
5 | a = 3
1+
vlib/v/checker/tests/if_smartcast_mutation_err.vv:6:3: error: cannot mutate `a` in a non-mut smartcast, use `if mut a ...`
2+
4 | a := SmartcastValue(1)
3+
5 | if a is int {
4+
6 | a = 3
55
| ^
6-
6 | }
7-
7 | }
6+
7 | }
7+
8 | }

vlib/v/checker/tests/orm_dynamic_unknown_field_err.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ vlib/v/checker/tests/orm_dynamic_unknown_field_err.vv:11:13: error: ORM: `User`
22
2 possibilities: `id`, `name`.
33
9 | db := sqlite.connect(':memory:') or { panic(err) }
44
10 | where_expr := {
5-
11 | if true { zzz == 'Alice' },
5+
11 | if true { zzz == 'Alice' }
66
| ~~~
77
12 | }
88
13 | _ := sql db {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
vlib/v/checker/tests/pool_processor_callback_array_return_err.vv:9:3: error: cannot assign to field `callback`: expected `fn (mut pool.PoolProcessor, int, int) voidptr`, not `fn (mut pool.PoolProcessor, int, int) []Foo`
22
7 | fn main() {
33
8 | _ := pool.new_pool_processor(
4-
9 | callback: fn (mut pp pool.PoolProcessor, idx int, wid int) []Foo {
5-
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4+
9 | callback: fn (mut pp pool.PoolProcessor, idx int, wid int) []main.Foo {
5+
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66
10 | _ = wid
77
11 | return [Foo{

0 commit comments

Comments
 (0)