antimony-lang / antimony

The Antimony programming language
https://antimony-lang.github.io/antimony/
Apache License 2.0
138 stars 6 forks source link

Circular imports #28

Closed garritfra closed 3 years ago

garritfra commented 3 years ago

Importing modules in multiple files will create circular dependencies, in turn causing an infinite loop.

foo.sb: import "bar"

foo: import "foo"

Possible solution

Modules could be analyzed beforehand to remove duplicate imports.

garritfra commented 3 years ago

Fixed by ac3e11cf56be7ef2773590640cb8a45b6ef556d8