Skip to content

Commit

Permalink
Merge pull request #765 from jdm/colon
Browse files Browse the repository at this point in the history
:: is allowed to start an expression. Close #762.
  • Loading branch information
jdm committed Jul 28, 2011
2 parents c141718 + f0e29c9 commit ed96d10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/comp/syntax/parse/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ pred can_begin_expr(t: token) -> bool {
NOT. { true }
BINOP(MINUS.) { true }
BINOP(STAR.) { true }
MOD_SEP. { true }
_ { false }
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/test/run-pass/expr-scope.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Regression test for issue #762
// xfail-stage0

fn f() { }
fn main() { ret ::f(); }

0 comments on commit ed96d10

Please sign in to comment.