From c55c6b2b20ec2b16466f1165d2def21465be4673 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Fri, 11 Jul 2025 08:45:15 +0200 Subject: [PATCH] forgot that statement and expression had a common ancestor --- test/parser/utils.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/parser/utils.hpp b/test/parser/utils.hpp index 7575a90..9e1fb7b 100644 --- a/test/parser/utils.hpp +++ b/test/parser/utils.hpp @@ -41,13 +41,8 @@ namespace { // Overloads for your known base types template -T* cast(ast::expression* expr) { - return cast_impl(expr); -} - -template -T* cast(ast::statement* stmt) { - return cast_impl(stmt); +T* cast(ast::node* stmt) { + return cast_impl(stmt); } template