1
Fork 0

resolve test case

resolve must ignore syntax context when comparing module names
This commit is contained in:
John Clements 2013-06-26 10:37:25 -07:00
parent 7668fb2c75
commit fb82283a98

View file

@ -0,0 +1,11 @@
mod x {
pub fn g() -> uint {14}
}
fn main(){
// should *not* shadow the module x:
let x = 9;
// use it to avoid warnings:
x+3;
assert_eq!(x::g(),14);
}