mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:35:43 +02:00
Make aliased call not look up predeclarations (#9244)
This commit is contained in:
@ -804,6 +804,8 @@ pub fn parse_alias(
|
||||
}
|
||||
|
||||
let starting_error_count = working_set.parse_errors.len();
|
||||
working_set.search_predecls = false;
|
||||
|
||||
let expr = parse_call(
|
||||
working_set,
|
||||
replacement_spans,
|
||||
@ -811,6 +813,8 @@ pub fn parse_alias(
|
||||
false, // TODO: Should this be set properly???
|
||||
);
|
||||
|
||||
working_set.search_predecls = true;
|
||||
|
||||
if starting_error_count != working_set.parse_errors.len() {
|
||||
if let Some(e) = working_set.parse_errors.get(starting_error_count) {
|
||||
if let ParseError::MissingPositional(..) = e {
|
||||
|
Reference in New Issue
Block a user