From 488bce275f104384282a0867aeaad011ae8cf48c Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 2 Feb 2020 18:27:00 +0000 Subject: Add local test files on top of dhall-lang tests --- dhall/src/semantics/tck/typecheck.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'dhall/src/semantics/tck') diff --git a/dhall/src/semantics/tck/typecheck.rs b/dhall/src/semantics/tck/typecheck.rs index 9a1d0d8..11c07d8 100644 --- a/dhall/src/semantics/tck/typecheck.rs +++ b/dhall/src/semantics/tck/typecheck.rs @@ -680,6 +680,7 @@ pub(crate) fn type_with( val.clone() }; let val = type_with(env, &val)?; + val.get_type()?; // Ensure val is not Sort let val_nf = val.eval(&env.as_nzenv()); let body_env = env.insert_value(&binder, val_nf); let body = type_with(&body_env, body)?; -- cgit v1.2.3