1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: fix new EnumVal

This commit is contained in:
Alexander Medvednikov 2020-02-25 19:59:47 +01:00
parent 28ee0f4ebe
commit 0f8b2399ee

View File

@ -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)