Skip to content

Commit 42e25b2

Browse files
committed
Type anti-quotes now work, add test case.
1 parent 5f6a115 commit 42e25b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/run-pass/qquote.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ fn main() {
6868
let stmt = #ast(stmt){let x = 20;};
6969
check_pp(*stmt, pprust::print_stmt, "let x = 20;");
7070

71+
let stmt2 = #ast(stmt){let x : $(ty) = some($(abc));};
72+
check_pp(*stmt2, pprust::print_stmt, "let x: option<int> = some(23);");
73+
7174
let pat = #ast(pat){some(_)};
7275
check_pp(pat, pprust::print_pat, "some(_)");
7376
}

0 commit comments

Comments
 (0)