Map actual 0 hash to 42.

This commit is contained in:
Stephen Chung
2020-12-24 18:43:04 +08:00
parent 8506640073
commit 363085efc3
4 changed files with 38 additions and 29 deletions

View File

@@ -2797,17 +2797,14 @@ fn make_curry_from_externals(fn_expr: Expr, externals: StaticVec<Ident>, pos: Po
#[cfg(not(feature = "no_closure"))]
externals.iter().for_each(|x| {
args.push(Expr::Variable(Box::new((
None,
None,
None,
x.clone().into(),
))));
let expr = Expr::Variable(Box::new((None, None, None, x.clone().into())));
args.push(expr);
});
#[cfg(feature = "no_closure")]
externals.into_iter().for_each(|x| {
args.push(Expr::Variable(Box::new((None, None, 0, x.clone().into()))));
let expr = Expr::Variable(Box::new((None, None, None, x.clone().into())));
args.push(expr);
});
let curry_func = crate::engine::KEYWORD_FN_PTR_CURRY;