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

ast: fix expr.str() (fix #12650 #13312) (#15414)

This commit is contained in:
yuyi 2022-08-12 22:24:13 +08:00 committed by GitHub
parent 584597aa3d
commit 70e3c72619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,13 +346,13 @@ pub fn (x Expr) str() string {
return '.$x.val'
}
FloatLiteral, IntegerLiteral {
return x.val
return x.val.clone()
}
GoExpr {
return 'go $x.call_expr'
}
Ident {
return x.name
return x.name.clone()
}
IfExpr {
mut parts := []string{}