mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 15:11:52 +02:00
Fix panic when assigning value to $env (#7894)
This commit is contained in:
@ -371,3 +371,8 @@ fn range_right_exclusive() -> TestResult {
|
||||
fn assignment_to_in_var_no_panic() -> TestResult {
|
||||
fail_test(r#"$in = 3"#, "needs to be a mutable variable")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn assignment_to_env_no_panic() -> TestResult {
|
||||
fail_test(r#"$env = 3"#, "cannot_replace_env")
|
||||
}
|
||||
|
Reference in New Issue
Block a user