Fix two invalid import cases we were not detecting:
* If an import was unused we would never print any errors for it. * We would keep the existing environment in scope when descending 'foo.bar' and would find 'bar' in the global environment if there was no 'bar' in 'foo'.
Showing
src/test/compile-fail/import.rs
0 → 100644
src/test/compile-fail/import2.rs
0 → 100644
想要评论请 注册 或 登录