2011-05-26 19:33:33 -05:00
|
|
|
// error-pattern:common2
|
2011-05-25 13:55:48 -05:00
|
|
|
|
|
|
|
import mod1::*;
|
|
|
|
import mod2::*;
|
|
|
|
|
|
|
|
mod mod1 {
|
2011-07-27 07:19:39 -05:00
|
|
|
fn f1() { log "f1"; }
|
|
|
|
fn common1() { log "common" }
|
|
|
|
fn common2() { log "common" }
|
2011-05-25 13:55:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2011-07-27 07:19:39 -05:00
|
|
|
fn f2() { log "f1"; }
|
|
|
|
fn common1() { log "common" }
|
|
|
|
fn common2() { log "common" }
|
2011-05-25 13:55:48 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
fn main() { common2(); }
|