File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
branches/try/src/libsyntax Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 3e6de6b7da8ee88bf84b0e217900051334be08da
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
5
- refs/heads/try: a42e36a816e600c5c40e2044bf06ee1625d4ebd6
5
+ refs/heads/try: 53a68814b645afa064e441aa3e855785abb20ea7
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -1019,4 +1019,15 @@ mod test {
1019
1019
token::get_ident_interner()),
1020
1020
~" zz!zz( ( zz$zz: zz$( zz $zz: zz) zz+=>( zz$( zz$zz$zz) +) ) ) ");
1021
1021
}
1022
+
1023
+ // and in cast expressions... this appears to be an existing bug.
1024
+ #[test] fn ident_transformation_in_types () {
1025
+ let zz_fold = fun_to_ident_folder(to_zz());
1026
+ let ast = string_to_crate(@" fn a( ) { let z = 13 as int; } ");
1027
+ assert_pred!(matches_codepattern,
1028
+ " matches_codepattern",
1029
+ pprust::to_str(&zz_fold.fold_crate(ast),fake_print_crate,
1030
+ token::get_ident_interner()),
1031
+ ~" fn zz( ) { let zz=13 as zz; } " ) ;
1032
+ }
1022
1033
}
You can’t perform that action at this time.
0 commit comments