diff options
author | Nadrieril | 2019-04-18 16:00:22 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-18 16:00:33 +0200 |
commit | d8fb1cc0f5bdf6650424169b3bd841e611924760 (patch) | |
tree | 00fa2b45602db3086ed06f31858acd4a00e653ba /dhall/src/typecheck.rs | |
parent | 22aa0081d314453bd1bb607384da3ed983dc4364 (diff) | |
parent | a0458fa3824ac301c8d0c1d7091e10d1468cbf91 (diff) |
Merge branch 'cleanup_map_mess'
Closes #83
Diffstat (limited to 'dhall/src/typecheck.rs')
-rw-r--r-- | dhall/src/typecheck.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall/src/typecheck.rs b/dhall/src/typecheck.rs index de3899c..5aaeb08 100644 --- a/dhall/src/typecheck.rs +++ b/dhall/src/typecheck.rs @@ -496,7 +496,7 @@ fn type_last_layer( PhantomData ))) ); - let tx = mktype(ctx, tx.absurd())?; + let tx = mktype(ctx, tx.embed_absurd())?; ensure_equal!(&tx, a.get_type()?, { let a = a.clone(); mkerr(TypeMismatch( @@ -511,7 +511,7 @@ fn type_last_layer( x.clone(), None, a.clone().normalize().embed(), - tb.absurd(), + tb.embed_absurd(), )), )?; } @@ -675,7 +675,7 @@ fn type_last_layer( } Field(r, x) => match r.get_type()?.unroll_ref()?.as_ref() { RecordType(kts) => match kts.get(&x) { - Some(t) => Ok(RetExpr(t.unroll().absurd_rec())), + Some(t) => Ok(RetExpr(t.unroll().embed_absurd())), None => Err(mkerr(MissingRecordField(x, r))), }, _ => { |