use new_constant
This commit is contained in:
parent
1e00544c1a
commit
0c01a4a958
|
|
@ -408,15 +408,15 @@ mod tests {
|
|||
body: vec![
|
||||
Statement::Assign {
|
||||
target: Location::Variable { name: "x".into() },
|
||||
source: Box::new(Expression::Constant(Constant::Number(1))),
|
||||
source: Box::new(Expression::new_constant(1)),
|
||||
},
|
||||
Statement::Local {
|
||||
name: "x".into(),
|
||||
init: Some(Box::new(Expression::Constant(Constant::Number(2)))),
|
||||
init: Some(Box::new(Expression::new_constant(2))),
|
||||
},
|
||||
Statement::Assign {
|
||||
target: Location::Variable { name: "x".into() },
|
||||
source: Box::new(Expression::Constant(Constant::Number(3))),
|
||||
source: Box::new(Expression::new_constant(3)),
|
||||
},
|
||||
],
|
||||
ret: Some(Box::new(Expression::Variable(Location::Variable {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user