2011-05-26 17:33:33 -07:00
|
|
|
// error-pattern:common2
|
2011-05-25 11:55:48 -07:00
|
|
|
|
|
|
|
import mod1::*;
|
|
|
|
import mod2::*;
|
|
|
|
|
|
|
|
mod mod1 {
|
2011-12-22 14:42:52 -08:00
|
|
|
fn f1() { #debug("f1"); }
|
2011-12-22 16:13:40 -08:00
|
|
|
fn common1() { #debug("common") }
|
|
|
|
fn common2() { #debug("common") }
|
2011-05-25 11:55:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
mod mod2 {
|
2011-12-22 14:42:52 -08:00
|
|
|
fn f2() { #debug("f1"); }
|
2011-12-22 16:13:40 -08:00
|
|
|
fn common1() { #debug("common") }
|
|
|
|
fn common2() { #debug("common") }
|
2011-05-25 11:55:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-19 15:16:48 -07:00
|
|
|
fn main() { common2(); }
|