diff --git a/vlib/v/parser/parser_test.v b/vlib/v/parser/parser_test.v index 5ed52a9117..cd02db99e8 100644 --- a/vlib/v/parser/parser_test.v +++ b/vlib/v/parser/parser_test.v @@ -8,7 +8,7 @@ import ( fn test_parse_file() { s := ' -fn foo() string { +fn foo() int { f := 23 return 10+4 } diff --git a/vlib/v/token/token.v b/vlib/v/token/token.v index 7161b707b2..4a2ae6c0bc 100644 --- a/vlib/v/token/token.v +++ b/vlib/v/token/token.v @@ -306,7 +306,7 @@ pub fn (t Token) str() string { // Representation of highest and lowest precedence -const ( +pub const ( lowest_prec = 0 highest_prec = 7 )