From f2e8c414993d5c9fcc63f5c035f755712c01dad0 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sat, 25 Jan 2020 10:20:53 +0000 Subject: Enable comparing Closures for equality --- dhall/src/semantics/tck/typecheck.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dhall/src/semantics/tck') diff --git a/dhall/src/semantics/tck/typecheck.rs b/dhall/src/semantics/tck/typecheck.rs index 046c999..52c7ac7 100644 --- a/dhall/src/semantics/tck/typecheck.rs +++ b/dhall/src/semantics/tck/typecheck.rs @@ -163,8 +163,9 @@ fn type_with( let ty = Value::from_kind_and_type( ValueKind::PiClosure { binder: Binder::new(binder.clone()), - annot: annot_nf, + annot: annot_nf.clone(), closure: Closure::new( + annot_nf, env.as_nzenv(), body.get_type()?.to_tyexpr(env.as_quoteenv().insert()), ), -- cgit v1.2.3