From 85bf3b766047213acac26137acb49136eb8ce101 Mon Sep 17 00:00:00 2001 From: Kyle Lin Date: Fri, 4 Mar 2022 01:31:47 +0800 Subject: [PATCH] fix old tests --- vlib/v/parser/tests/fn_type_only_args_no_body.out | 7 +++---- vlib/v/parser/tests/fn_type_only_args_unknown_name.out | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/vlib/v/parser/tests/fn_type_only_args_no_body.out b/vlib/v/parser/tests/fn_type_only_args_no_body.out index fad0819c17..4484380de1 100644 --- a/vlib/v/parser/tests/fn_type_only_args_no_body.out +++ b/vlib/v/parser/tests/fn_type_only_args_no_body.out @@ -1,6 +1,5 @@ -vlib/v/parser/tests/fn_type_only_args_no_body.vv:2:1: error: functions with type only args can not have bodies +vlib/v/parser/tests/fn_type_only_args_no_body.vv:1:14: error: functions with type only args can not have bodies 1 | fn test(int) { + | ^ 2 | } - | ^ - 3 | - 4 | fn main() { + 3 | diff --git a/vlib/v/parser/tests/fn_type_only_args_unknown_name.out b/vlib/v/parser/tests/fn_type_only_args_unknown_name.out index 1f94768f83..c79b778199 100644 --- a/vlib/v/parser/tests/fn_type_only_args_unknown_name.out +++ b/vlib/v/parser/tests/fn_type_only_args_unknown_name.out @@ -1,6 +1,5 @@ -vlib/v/parser/tests/fn_type_only_args_unknown_name.vv:2:1: error: functions with type only args can not have bodies +vlib/v/parser/tests/fn_type_only_args_unknown_name.vv:1:16: error: functions with type only args can not have bodies 1 | fn test(param) { + | ^ 2 | } - | ^ - 3 | - 4 | fn main() { + 3 |