diff options
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/phase/typecheck.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhall/src/semantics/phase/typecheck.rs b/dhall/src/semantics/phase/typecheck.rs index c8d934d..2e1cc02 100644 --- a/dhall/src/semantics/phase/typecheck.rs +++ b/dhall/src/semantics/phase/typecheck.rs @@ -291,10 +291,9 @@ fn type_of_builtin<E>(b: Builtin) -> Expr<E> { } pub(crate) fn builtin_to_value(b: Builtin) -> Value { - let ctx = TyCtx::new(); Value::from_kind_and_type( ValueKind::from_builtin(b), - type_with(&ctx, type_of_builtin(b)).unwrap(), + typecheck(type_of_builtin(b)).unwrap(), ) } |