From 796c376408aa19f98b0e20bc5487383efd710b63 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 27 Dec 2019 18:55:51 +0100 Subject: [PATCH] fix parser_test.v --- vlib/v/parser/parser_test.v | 2 +- vlib/v/token/token.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 )