diff options
author | Nadrieril | 2020-11-03 23:31:37 +0000 |
---|---|---|
committer | GitHub | 2020-11-03 23:31:37 +0000 |
commit | 51b40c6e36a0aad28ffb44debf84cba4c7028680 (patch) | |
tree | 4585a98c7ef97a3b3afa1934a9d184cfb89040d1 /dhall/src/semantics/tck/tir.rs | |
parent | 71c8e889610b8b9bb6155c20ca91bac4ebc9daee (diff) | |
parent | ecc5242463308c16f38dbd5015b9f264f990b76a (diff) |
Merge pull request #196 from Nadrieril/allow-mutation-in-normalization
Diffstat (limited to 'dhall/src/semantics/tck/tir.rs')
-rw-r--r-- | dhall/src/semantics/tck/tir.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dhall/src/semantics/tck/tir.rs b/dhall/src/semantics/tck/tir.rs index ec15a1f..f34802c 100644 --- a/dhall/src/semantics/tck/tir.rs +++ b/dhall/src/semantics/tck/tir.rs @@ -117,6 +117,9 @@ impl<'hir> Tir<'hir> { pub fn ty(&self) -> &Type { &self.ty } + pub fn into_ty(self) -> Type { + self.ty + } pub fn to_hir(&self) -> Hir { self.as_hir().clone() |