From 0f8b2399eea4cd1520c73cd17089c6fdb84d2168 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 25 Feb 2020 19:59:47 +0100 Subject: [PATCH] fmt: fix new EnumVal --- vlib/v/fmt/fmt.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 056c65a7a4..0c4fc12c4a 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -280,7 +280,7 @@ fn (f mut Fmt) expr(node ast.Expr) { f.write(')') } ast.EnumVal { - f.write('.' + it.name) + f.write(it.enum_name + '.' + it.val) } ast.FloatLiteral { f.write(it.val)