From b8ab6de2070c54f045bdbe53f5e9ed84cf3378cd Mon Sep 17 00:00:00 2001
From: Mattias Ajander <mattias@ajander.se>
Date: Thu, 13 Mar 2025 19:18:46 +0100
Subject: [PATCH] Proper string cast for to_s function

---
 source/ast/LiteralNode.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/ast/LiteralNode.cc b/source/ast/LiteralNode.cc
index a7cf2fb..c8479b2 100644
--- a/source/ast/LiteralNode.cc
+++ b/source/ast/LiteralNode.cc
@@ -12,7 +12,7 @@ Node* LiteralNode::evaluate()
 
 String LiteralNode::to_s() const
 {
-    return std::get<String>(value);
+    return cast<String>();
 }
 
 NodeValue LiteralNode::get_value() const
-- 
GitLab