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:
Rafael Ávila de Espíndola 2011-01-14 17:20:14 -05:00
parent c8a2c44a8e
commit 5b9eda4a41
4 changed files with 46 additions and 5 deletions

View file

@ -0,0 +1,8 @@
// error-pattern: recursive import
import zed.bar;
import bar.zed;
fn main(vec[str] args) {
log "loop";
}