| 1 | vlib/v/checker/tests/shared_lock.vv:6:20: notice: unused parameter: `x` |
| 2 | 4 | } |
| 3 | 5 | |
| 4 | 6 | fn (shared s St) r(x St) { |
| 5 | | ^ |
| 6 | 7 | } |
| 7 | 8 | |
| 8 | vlib/v/checker/tests/shared_lock.vv:9:20: notice: unused parameter: `x` |
| 9 | 7 | } |
| 10 | 8 | |
| 11 | 9 | fn (s St) m(shared x St) { |
| 12 | | ^ |
| 13 | 10 | } |
| 14 | 11 | |
| 15 | vlib/v/checker/tests/shared_lock.vv:12:6: notice: unused parameter: `w` |
| 16 | 10 | } |
| 17 | 11 | |
| 18 | 12 | fn f(w int, shared x St) { |
| 19 | | ^ |
| 20 | 13 | } |
| 21 | 14 | |
| 22 | vlib/v/checker/tests/shared_lock.vv:12:20: notice: unused parameter: `x` |
| 23 | 10 | } |
| 24 | 11 | |
| 25 | 12 | fn f(w int, shared x St) { |
| 26 | | ^ |
| 27 | 13 | } |
| 28 | 14 | |
| 29 | vlib/v/checker/tests/shared_lock.vv:20:5: error: method with `shared` receiver cannot be called inside `lock`/`rlock` block |
| 30 | 18 | } |
| 31 | 19 | lock x { |
| 32 | 20 | x.r(x) |
| 33 | | ~~~~ |
| 34 | 21 | x.m(x) |
| 35 | 22 | f(0, x) |
| 36 | vlib/v/checker/tests/shared_lock.vv:21:7: error: method with `shared` arguments cannot be called inside `lock`/`rlock` block |
| 37 | 19 | lock x { |
| 38 | 20 | x.r(x) |
| 39 | 21 | x.m(x) |
| 40 | | ^ |
| 41 | 22 | f(0, x) |
| 42 | 23 | } |
| 43 | vlib/v/checker/tests/shared_lock.vv:21:7: error: method `m` parameter `x` is `shared`, so use `shared x` instead |
| 44 | 19 | lock x { |
| 45 | 20 | x.r(x) |
| 46 | 21 | x.m(x) |
| 47 | | ^ |
| 48 | 22 | f(0, x) |
| 49 | 23 | } |
| 50 | vlib/v/checker/tests/shared_lock.vv:22:8: error: function with `shared` arguments cannot be called inside `lock`/`rlock` block |
| 51 | 20 | x.r(x) |
| 52 | 21 | x.m(x) |
| 53 | 22 | f(0, x) |
| 54 | | ^ |
| 55 | 23 | } |
| 56 | 24 | } |
| 57 | vlib/v/checker/tests/shared_lock.vv:22:8: error: function `f` parameter `x` is `shared`, so use `shared x` instead |
| 58 | 20 | x.r(x) |
| 59 | 21 | x.m(x) |
| 60 | 22 | f(0, x) |
| 61 | | ^ |
| 62 | 23 | } |
| 63 | 24 | } |
| 64 | |