Skip to content

Commit

Permalink
Update self_hosted/main.jou
Browse files Browse the repository at this point in the history
Co-authored-by: Akuli <[email protected]>
  • Loading branch information
littlewhitecloud and Akuli authored Oct 23, 2023
1 parent 6f11ded commit 508ba7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion self_hosted/main.jou
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ 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 == dest:
fail(imp->location, "the file itself cannot be imported")

assert src != NULL
Expand Down

0 comments on commit 508ba7e

Please sign in to comment.