1
Fork 0

Catch cyclic imports harder. Add 2 tests to confirm.

This commit is contained in:
Graydon Hoare 2010-07-09 11:59:00 -07:00
parent fdaa723c4a
commit ab3921f27e
3 changed files with 34 additions and 11 deletions

View file

@ -0,0 +1,13 @@
// error-pattern:cyclic import
mod a {
import b.x;
}
mod b {
import a.x;
fn main() {
auto y = x;
}
}