cgen: println(none) => `<none>` (#8404)
							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…
	
		Reference in New Issue