mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 22:47:43 +02:00
Simplify expressions (#3389)
* WIP: experiment with simpler expressions * fix simple invoke * update tests * fix a few tests * Make paren parsing more robust * fix external args * Remove old invocation * Update tests * Update tests
This commit is contained in:
@ -293,6 +293,11 @@ pub fn compute_values(
|
||||
|
||||
Ok(UntaggedValue::Primitive(Primitive::Duration(result)))
|
||||
}
|
||||
(Primitive::String(x), Primitive::String(y)) => {
|
||||
let mut new_string = x.clone();
|
||||
new_string.push_str(y);
|
||||
Ok(UntaggedValue::Primitive(Primitive::String(new_string)))
|
||||
}
|
||||
_ => Err((left.type_name(), right.type_name())),
|
||||
},
|
||||
_ => Err((left.type_name(), right.type_name())),
|
||||
|
Reference in New Issue
Block a user