This commit is contained in:
ProgramSnail 2023-05-18 20:11:26 +03:00
parent e75652afc3
commit f6de515b2c

View file

@ -752,10 +752,9 @@ void ExecuteVisitor::CheckPattern(Pattern& node, const BaseNode& base_node) {
break;
case 1:
Visitor::Visit(*std::get<std::unique_ptr<Literal>>(node));
error_handling::HandleInternalError("Unimplemented EqualValues", "ExecuteVisitor.CheckPattern");
// if (!context_manager_.EqualValues(current_value_, value)) { // TODO
// case_matched_ = false;
// }
if (!context_manager_.EqualValues(current_value_, value)) { // TODO
case_matched_ = false;
}
break;
case 2:
Visit(std::get<std::unique_ptr<TypeConstructorPattern>>(node).get());