Fix the import handling in "complex" cases. When looking a.b.c and 'a' is a
module, we should look for 'b' *just* in the module 'a' and then continue resolving b.c in the environment created by updating *with* a. Still not 100% correct, but getting there.
This commit is contained in:
parent
c8a2c44a8e
commit
5b9eda4a41
4 changed files with 46 additions and 5 deletions
8
src/test/compile-fail/import4.rs
Normal file
8
src/test/compile-fail/import4.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// error-pattern: recursive import
|
||||
|
||||
import zed.bar;
|
||||
import bar.zed;
|
||||
|
||||
fn main(vec[str] args) {
|
||||
log "loop";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue