Make aliased call not look up predeclarations (#9244)

This commit is contained in:
Jakub Žádník
2023-05-20 00:46:22 +03:00
committed by GitHub
parent 01a00641f9
commit 429c4332b1
4 changed files with 24 additions and 7 deletions

View File

@ -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");
}