From 2a835078068ed7a7e0103c67b3ad4258a8dbb163 Mon Sep 17 00:00:00 2001 From: Akuli Date: Fri, 10 Jan 2025 20:37:09 +0200 Subject: [PATCH] fixed? --- compiler/structs.jou | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/structs.jou b/compiler/structs.jou index e3e151fd..e01d0f92 100644 --- a/compiler/structs.jou +++ b/compiler/structs.jou @@ -1,6 +1,8 @@ # TODO: delete this file, merge into others import "stdlib/str.jou" +import "stdlib/io.jou" +import "stdlib/mem.jou" import "./utils.jou" import "./types.jou" @@ -81,7 +83,7 @@ class Constant: else: assert False - def free(self) -> None: + def free(self) -> None: if self->kind == ConstantKind::String: free(self->str)