From 8a53ee1d550e03ed28c89a1267aaac614dcd1264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD=E4=BA=91?= <71159641+littlewhitecloud@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:59:48 +0800 Subject: [PATCH] emm --- self_hosted/main.jou | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/self_hosted/main.jou b/self_hosted/main.jou index c443c2e6..30621f79 100644 --- a/self_hosted/main.jou +++ b/self_hosted/main.jou @@ -235,9 +235,8 @@ class Compiler: if strcmp(self->files[isrc].ast.path, imp->resolved_path) == 0: src = &self->files[isrc] break - if (src->ast.path == dest->ast.path) { + if (src->ast.path == dest->ast.path): fail(imp->location, "the file itself cannot be imported") - } assert src != NULL