Skip to content

Commit

Permalink
emm
Browse files Browse the repository at this point in the history
  • Loading branch information
littlewhitecloud authored Oct 22, 2023
1 parent 080fb23 commit 8a53ee1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions self_hosted/main.jou
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a53ee1

Please sign in to comment.