diff options
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r-- | src/hir/from_ast.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp index 46a49e75..2d5339ac 100644 --- a/src/hir/from_ast.cpp +++ b/src/hir/from_ast.cpp @@ -786,8 +786,8 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat else { ::std::map< ::std::string, ::HIR::Function> methods; - ::std::map< ::std::string, ::HIR::Constant> constants; - ::std::map< ::std::string, ::HIR::TypeAlias> types; + ::std::map< ::std::string, ::HIR::ExprPtr> constants; + ::std::map< ::std::string, ::HIR::TypeRef> types; for(const auto& item : impl.items()) { @@ -795,8 +795,9 @@ void LowerHIR_Module_Impls(const ::AST::Module& ast_mod, ::HIR::Crate& hir_crat ( ERROR(Span(), E0000, "Unexpected item type in trait impl"); ), + // TODO: Associated constants (Type, - types.insert( ::std::make_pair(item.name, LowerHIR_TypeAlias(e)) ); + types.insert( ::std::make_pair(item.name, LowerHIR_Type(e.type())) ); ), (Function, methods.insert( ::std::make_pair(item.name, LowerHIR_Function(e)) ); |