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