Fix shorthand env duplicates (#4587)

This commit is contained in:
JT 2022-02-21 12:58:04 -05:00 committed by GitHub
parent c0a1d18e3d
commit 6670b77b27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3551,14 +3551,16 @@ pub fn parse_expression(
}, },
]; ];
let expr = Expr::Call(Box::new(Call {
head: Span { start: 0, end: 0 },
decl_id,
named: vec![],
positional,
}));
( (
Expression { Expression {
expr: Expr::Call(Box::new(Call { expr,
head: span(spans),
decl_id,
named: vec![],
positional,
})),
custom_completion: None, custom_completion: None,
span: span(spans), span: span(spans),
ty: Type::Unknown, ty: Type::Unknown,