diff options
author | Nadrieril | 2019-04-16 20:57:15 +0200 |
---|---|---|
committer | Nadrieril | 2019-04-16 20:57:15 +0200 |
commit | b12c312dcdc067982708193cedf43073483e5043 (patch) | |
tree | 5e7a748e806f689e582172b4801048176106b8ec /dhall_core | |
parent | 9953043a604556018ba2b1446831aae18f7e7c78 (diff) |
Fix union constructor typechecking
Diffstat (limited to 'dhall_core')
-rw-r--r-- | dhall_core/src/core.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dhall_core/src/core.rs b/dhall_core/src/core.rs index 16c64c7..6100981 100644 --- a/dhall_core/src/core.rs +++ b/dhall_core/src/core.rs @@ -447,6 +447,12 @@ impl<N: Clone> Expr<N, X> { } } +impl<N: Clone> SubExpr<N, X> { + pub fn embed_absurd<T>(&self) -> SubExpr<N, T> { + rc(self.as_ref().embed_absurd()) + } +} + impl<N, E> Clone for SubExpr<N, E> { fn clone(&self) -> Self { SubExpr(Rc::clone(&self.0)) |