Skip to content

Commit

Permalink
Type anti-quotes now work, add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevina committed Feb 4, 2012
1 parent 5f6a115 commit 42e25b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/run-pass/qquote.rs
Expand Up @@ -68,6 +68,9 @@ fn main() {
let stmt = #ast(stmt){let x = 20;};
check_pp(*stmt, pprust::print_stmt, "let x = 20;");

let stmt2 = #ast(stmt){let x : $(ty) = some($(abc));};
check_pp(*stmt2, pprust::print_stmt, "let x: option<int> = some(23);");

let pat = #ast(pat){some(_)};
check_pp(pat, pprust::print_pat, "some(_)");
}
Expand Down

0 comments on commit 42e25b2

Please sign in to comment.