fmt: fix new EnumVal

pull/3845/head
Alexander Medvednikov 2020-02-25 19:59:47 +01:00
parent 28ee0f4ebe
commit 0f8b2399ee
1 changed files with 1 additions and 1 deletions

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)