1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix formatting in tests/web_routing_checks.out

This commit is contained in:
Joe Conigliaro 2021-01-01 08:01:00 +11:00
parent 63afd26c8c
commit e9f9f27e49
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1

View File

@ -1,14 +1,14 @@
vlib/v/checker/tests/vweb_routing_checks.vv:22:1: error: mismatched parameters count between vweb method `App.bar` (1) and route attribute ['/bar'] (0)
20 | // segfault because path taks 0 vars and fcn takes 1 arg
21 | ['/bar']
22 | pub fn (mut app App) bar(a string) vweb.Result {
vlib/v/checker/tests/vweb_routing_checks.vv:21:1: error: mismatched parameters count between vweb method `App.bar` (1) and route attribute ['/bar'] (0)
19 | // segfault because path taks 0 vars and fcn takes 1 arg
20 | ['/bar']
21 | pub fn (mut app App) bar(a string) vweb.Result {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 | app.html('works')
24 | return vweb.Result{}
vlib/v/checker/tests/vweb_routing_checks.vv:29:1: error: mismatched parameters count between vweb method `App.cow` (0) and route attribute ['/cow/:low'] (1)
27 | // no segfault, but it shouldnt compile
28 | ['/cow/:low']
29 | pub fn (mut app App) cow() vweb.Result {
22 | app.html('works')
23 | return vweb.Result{}
vlib/v/checker/tests/vweb_routing_checks.vv:28:1: error: mismatched parameters count between vweb method `App.cow` (0) and route attribute ['/cow/:low'] (1)
26 | // no segfault, but it shouldnt compile
27 | ['/cow/:low']
28 | pub fn (mut app App) cow() vweb.Result {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | app.html('works')
31 | return vweb.Result{}
29 | app.html('works')
30 | return vweb.Result{}