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