mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Make aliased call not look up predeclarations (#9244)
This commit is contained in:
@ -149,3 +149,9 @@ fn alias_multiword_name() {
|
||||
let actual = nu!(r#"alias "foo bar" = echo 'test'; foo bar"#);
|
||||
assert_eq!(actual.out, "test");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_ordering() {
|
||||
let actual = nu!(r#"alias bar = echo; def echo [] { 'dummy echo' }; bar 'foo'"#);
|
||||
assert_eq!(actual.out, "foo");
|
||||
}
|
||||
|
@ -171,9 +171,9 @@ fn use_export_env_combined() {
|
||||
sandbox.with_files(vec![FileWithContentToBeTrimmed(
|
||||
"spam.nu",
|
||||
r#"
|
||||
def foo [] { 'foo' }
|
||||
alias bar = foo
|
||||
export-env { let-env FOO = (bar) }
|
||||
def foo [] { 'foo' }
|
||||
"#,
|
||||
)]);
|
||||
|
||||
|
Reference in New Issue
Block a user