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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user