:: is allowed to start an expression. Close #762.

This commit is contained in:
Josh Matthews 2011-07-28 02:32:27 -04:00
parent c141718952
commit f0e29c92aa
2 changed files with 6 additions and 0 deletions

View File

@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool {
NOT. { true }
BINOP(MINUS.) { true }
BINOP(STAR.) { true }
MOD_SEP. { true }
_ { false }
}
}

View File

@ -0,0 +1,5 @@
// Regression test for issue #762
// xfail-stage0
fn f() { }
fn main() { ret ::f(); }