diff options
author | Nadrieril | 2020-02-02 18:27:00 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-02 18:36:06 +0000 |
commit | 488bce275f104384282a0867aeaad011ae8cf48c (patch) | |
tree | 8c9d117635ffe60781dfac31b7c612ee172e1b71 /dhall/src/semantics/tck | |
parent | b7b5a0d27eb0cccdcd0c532a7042b3514eacbe40 (diff) |
Add local test files on top of dhall-lang tests
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/tck/typecheck.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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)?; |