From 3d6b936f385d5541a98b95c7accd574c0c0e2f42 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 20 Oct 2019 20:47:24 +0300 Subject: [PATCH] parser: undefined error --- vlib/compiler/parser.v | 2 +- vlib/compiler/tests/repl/error.repl | 2 +- vlib/compiler/tests/repl/error_nosave.repl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/compiler/parser.v b/vlib/compiler/parser.v index 3b480ea034..9ab36462d4 100644 --- a/vlib/compiler/parser.v +++ b/vlib/compiler/parser.v @@ -1989,7 +1989,7 @@ fn (p mut Parser) get_undefined_fn_type(name string, orig_name string) string { } else if orig_name in reserved_type_param_names { p.error('the letter `$orig_name` is reserved for type parameters') } else { - p.error('undefined symbol: `$orig_name`') + p.error('undefined: `$orig_name`') } return 'void' } diff --git a/vlib/compiler/tests/repl/error.repl b/vlib/compiler/tests/repl/error.repl index 0f806dae68..715b2e07de 100644 --- a/vlib/compiler/tests/repl/error.repl +++ b/vlib/compiler/tests/repl/error.repl @@ -1,3 +1,3 @@ println(a) ===output=== -.vrepl.v:2:9: undefined symbol: `a` +.vrepl.v:2:9: undefined: `a` diff --git a/vlib/compiler/tests/repl/error_nosave.repl b/vlib/compiler/tests/repl/error_nosave.repl index fb009d92e1..fb6a5158b5 100644 --- a/vlib/compiler/tests/repl/error_nosave.repl +++ b/vlib/compiler/tests/repl/error_nosave.repl @@ -1,5 +1,5 @@ a 33 ===output=== -.vrepl_temp.v:3:9: undefined symbol: `a` +.vrepl_temp.v:3:9: undefined: `a` 33