From 9c1e91a788aa7ebed9db0255b54b1cdc602533ae Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 19 Nov 2016 17:07:39 +0800 Subject: MIR Check - Monomorphise types from enums --- src/mir/check.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mir/check.cpp b/src/mir/check.cpp index b033ec51..e11c3b4b 100644 --- a/src/mir/check.cpp +++ b/src/mir/check.cpp @@ -225,6 +225,7 @@ namespace { for(const auto& fld : ve) tys.push_back( monomorphise_type(sp, enm.m_params, te.path.m_data.as_Generic().m_params, fld.ent) ); tmp = ::HIR::TypeRef( mv$(tys) ); + this->resolve.expand_associated_types(sp, tmp); return tmp; ), (Struct, @@ -233,6 +234,7 @@ namespace { for(const auto& fld : ve) tys.push_back( monomorphise_type(sp, enm.m_params, te.path.m_data.as_Generic().m_params, fld.second.ent) ); tmp = ::HIR::TypeRef( mv$(tys) ); + this->resolve.expand_associated_types(sp, tmp); return tmp; ) ) -- cgit v1.2.3