test: Add a test for mods inside functions. Closes #493

This commit is contained in:
Brian Anderson 2012-07-30 18:00:36 -07:00
parent f78776e9d8
commit f6ce2bd831

View File

@ -0,0 +1,11 @@
fn f() -> int {
mod m {
fn g() -> int { 720 }
}
m::g()
}
fn main() {
assert f() == 720;
}