mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Spread operator for list literals (#11006)
This commit is contained in:
@ -348,6 +348,12 @@ fn convert_to_value(
|
||||
"signatures not supported in nuon".into(),
|
||||
expr.span,
|
||||
)),
|
||||
Expr::Spread(..) => Err(ShellError::OutsideSpannedLabeledError(
|
||||
original_text.to_string(),
|
||||
"Error when loading".into(),
|
||||
"spread operator not supported in nuon".into(),
|
||||
expr.span,
|
||||
)),
|
||||
Expr::String(s) => Ok(Value::string(s, span)),
|
||||
Expr::StringInterpolation(..) => Err(ShellError::OutsideSpannedLabeledError(
|
||||
original_text.to_string(),
|
||||
|
Reference in New Issue
Block a user