mirror of
https://github.com/vlang/v.git
synced 2025-09-17 11:26:17 -04:00
cgen: println(none) => <none>
(#8404)
This commit is contained in:
parent
d7d069adc4
commit
c4758c21c6
@ -324,7 +324,7 @@ fn (mut g Gen) gen_expr_to_string(expr ast.Expr, etype table.Type) {
|
|||||||
g.expr(expr)
|
g.expr(expr)
|
||||||
g.write(' ? _SLIT("true") : _SLIT("false")')
|
g.write(' ? _SLIT("true") : _SLIT("false")')
|
||||||
} else if sym.kind == .none_ {
|
} else if sym.kind == .none_ {
|
||||||
g.write('_SLIT("none")')
|
g.write('_SLIT("<none>")')
|
||||||
} else if sym.kind == .enum_ {
|
} else if sym.kind == .enum_ {
|
||||||
is_var := match expr {
|
is_var := match expr {
|
||||||
ast.SelectorExpr, ast.Ident { true }
|
ast.SelectorExpr, ast.Ident { true }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user