diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-11 18:13:58 +1000 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-11 18:13:58 +1000 |
commit | 5971170b5dd1733c2a8e4eb895d68089fec877d3 (patch) | |
tree | 420e77705f19262c0508dfd8d813f8cf3977a5c7 /src/hir/type.hpp | |
parent | c9c9c91a42bf6202d9fe3834f952033455edd43c (diff) | |
download | mrust-5971170b5dd1733c2a8e4eb895d68089fec877d3.tar.gz |
HIR Typecheck CS - Remove todo panic on unknown infer, fix missed base value in struct literals
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r-- | src/hir/type.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp index 8a404e98..b8af896f 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -209,6 +209,9 @@ public: static TypeRef new_path(::HIR::Path path, TypePathBinding binding) { return TypeRef(Data::make_Path({ mv$(path), mv$(binding) })); } + static TypeRef new_closure(::HIR::ExprNode_Closure* node_ptr, ::std::vector< ::HIR::TypeRef> args, ::HIR::TypeRef rv) { + return TypeRef(Data::make_Closure({ node_ptr, box$(mv$(rv)), mv$(args) })); + } TypeRef clone() const; |