diff options
Diffstat (limited to 'src/hir/type.cpp')
-rw-r--r-- | src/hir/type.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hir/type.cpp b/src/hir/type.cpp index 2bbfafa8..6863cd12 100644 --- a/src/hir/type.cpp +++ b/src/hir/type.cpp @@ -65,6 +65,9 @@ void ::HIR::TypeRef::fmt(::std::ostream& os) const (Array, os << "[" << *e.inner << "; " << "/*sz*/" << "]"; ), + (Slice, + os << "[" << *e.inner << "]"; + ), (Tuple, os << "("; for(const auto& t : e) @@ -131,6 +134,11 @@ void ::HIR::TypeRef::fmt(::std::ostream& os) const // /* huh */ // }) ); ), + (Slice, + return ::HIR::TypeRef( Data::make_Slice({ + box$( e.inner->clone() ) + }) ); + ), (Tuple, ::std::vector< ::HIR::TypeRef> types; for(const auto& t : e) |