2011-05-25 12:10:30 -05:00
|
|
|
|
|
|
|
// error-pattern: unresolved name
|
|
|
|
mod circ1 {
|
|
|
|
import circ1::*;
|
2011-05-31 20:24:06 -05:00
|
|
|
export f1;
|
|
|
|
export f2;
|
|
|
|
export common;
|
2011-05-25 12:10:30 -05:00
|
|
|
fn f1() {
|
|
|
|
log "f1";
|
|
|
|
}
|
|
|
|
fn common() -> uint {
|
|
|
|
ret 0u;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod circ2 {
|
|
|
|
import circ2::*;
|
2011-05-31 20:24:06 -05:00
|
|
|
export f1;
|
|
|
|
export f2;
|
|
|
|
export common;
|
2011-05-25 12:10:30 -05:00
|
|
|
fn f2() {
|
|
|
|
log "f2";
|
|
|
|
}
|
|
|
|
fn common() -> uint {
|
|
|
|
ret 1u;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod test {
|
|
|
|
import circ1::*;
|
|
|
|
|
|
|
|
fn test() {
|
|
|
|
f1066();
|
|
|
|
}
|
|
|
|
}
|