diff --git a/src/lpython/semantics/python_ast_to_asr.cpp b/src/lpython/semantics/python_ast_to_asr.cpp index e368f3b921..221ac09ce4 100644 --- a/src/lpython/semantics/python_ast_to_asr.cpp +++ b/src/lpython/semantics/python_ast_to_asr.cpp @@ -2569,10 +2569,6 @@ class CommonVisitor : public AST::BaseVisitor { std::string var_name = v_variable->m_name; ASR::ttype_t* type = v_variable->m_type; if (!init_expr && ASR::is_a(*type)) { - ASR::ttype_t *key_type = ASR::down_cast(type)->m_key_type; - ASR::ttype_t *value_type = ASR::down_cast(type)->m_value_type; - ASR::ttype_t *dict_type = ASRUtils::TYPE(ASR::make_Dict_t(al, loc, - key_type, value_type)); init_expr = ASRUtils::EXPR(ASR::make_DictConstant_t(al, loc, nullptr, 0, nullptr, 0, type)); }