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)