diff options
author | Nadrieril | 2020-01-29 18:48:19 +0000 |
---|---|---|
committer | Nadrieril | 2020-01-29 19:11:48 +0000 |
commit | 1e466a20533d936f44430b1bc18508cd00e5ccd2 (patch) | |
tree | 20c025af6ed539a600ec8db9e1339c9c4e7c9112 /dhall/src/semantics/phase/typecheck.rs | |
parent | f88880004c7dcf5e67c4d5e2330e6e879523f27b (diff) |
Use TyExpr in Typed
Diffstat (limited to '')
-rw-r--r-- | dhall/src/semantics/phase/typecheck.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dhall/src/semantics/phase/typecheck.rs b/dhall/src/semantics/phase/typecheck.rs index f559323..6de65e8 100644 --- a/dhall/src/semantics/phase/typecheck.rs +++ b/dhall/src/semantics/phase/typecheck.rs @@ -336,7 +336,7 @@ fn type_with(ctx: &TyCtx, e: Expr<Normalized>) -> Result<Value, TypeError> { // )) Ok(e) } - Embed(p) => Ok(p.clone().into_typed().into_value()), + Embed(p) => Ok(p.clone().into_value()), Var(var) => match ctx.lookup(&var) { Some(typed) => Ok(typed.clone()), None => Err(TypeError::new(TypeMessage::UnboundVariable(span))), |