You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module example;
import Stdlib.Prelude;
import Stdlib.Prelude using {Bool};
x : Stdlib.Prelude.Bool := Stdlib.Prelude.true; -- error: Stdlib.Prelude.true is not in scope
It might be counterintuitive that the second import shadows/overwrites the first one.
I think it would be less confusing if imports behaved additively. I.e. the same way as open statements. Then, the above example should typecheck.
The text was updated successfully, but these errors were encountered:
Example:
It might be counterintuitive that the second import shadows/overwrites the first one.
I think it would be less confusing if imports behaved additively. I.e. the same way as open statements. Then, the above example should typecheck.
The text was updated successfully, but these errors were encountered: