This commit is contained in:
ProgramSnail 2023-05-22 19:14:31 +03:00
parent 43b2993e2a
commit 25583d3edd

View file

@ -1464,19 +1464,6 @@ std::optional<FunctionDeclaration*>
utils::IdType expression_type) {
std::optional<FunctionDeclaration*> maybe_function_declaration;
// TODO: -------- remove, unneeded -------
// auto maybe_internal_type_info = context_manager_.GetValue<info::type::InternalType>(expression_type);
// if (maybe_internal_type_info.has_value()) {
// auto maybe_abstract_type_id = context_manager_.FindLocalType(info::type::ToString(*maybe_internal_type_info.value()));
// if (maybe_abstract_type_id.has_value()) {
// expression_type = maybe_abstract_type_id.value();
// } else {
// error_handling::HandleInternalError("InternalType local abstract type not found",
// "TypeCheckVisitor.FindExpressionMethodAndUpdate",
// &node->base);
// }
// }
auto maybe_abstract_type_info = context_manager_.GetValue<info::type::AbstractType>(expression_type);
if (maybe_abstract_type_info.has_value()) {