Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Side by Side Diff: pkg/front_end/test/fasta/expressions.dart.direct.expect

Issue 2775163003: Make catch variables final. (Closed)
Patch Set: Update expectation files. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/front_end/test/fasta/accessors.dart.direct.expect ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method foo({dynamic fisk = null}) → dynamic { 5 static method foo({dynamic fisk = null}) → dynamic {
6 core::print(fisk); 6 core::print(fisk);
7 } 7 }
8 static method caller(dynamic f) → dynamic { 8 static method caller(dynamic f) → dynamic {
9 f.call(); 9 f.call();
10 } 10 }
11 static method main() → dynamic { 11 static method main() → dynamic {
12 core::int i = 0; 12 core::int i = 0;
13 core::print(i.==(1) ? "bad" : "good"); 13 core::print(i.==(1) ? "bad" : "good");
14 core::print("${i}"); 14 core::print("${i}");
15 core::print("'${i}'"); 15 core::print("'${i}'");
16 core::print(" '${i}' "); 16 core::print(" '${i}' ");
17 core::print(" '${i}' '${i}'"); 17 core::print(" '${i}' '${i}'");
18 core::print(" '${i}' '${i}'"); 18 core::print(" '${i}' '${i}'");
19 core::print("foobar"); 19 core::print("foobar");
20 core::print(" '${i}' '${i}' '${i}' '${i}'"); 20 core::print(" '${i}' '${i}' '${i}' '${i}'");
21 try { 21 try {
22 throw "fisk"; 22 throw "fisk";
23 } 23 }
24 on core::String catch(dynamic e, dynamic s) { 24 on core::String catch(final dynamic e, final dynamic s) {
25 core::print(e); 25 core::print(e);
26 if(!s.==(null)) 26 if(!s.==(null))
27 core::print(s); 27 core::print(s);
28 } 28 }
29 for (; false; ) { 29 for (; false; ) {
30 } 30 }
31 dynamic list = <dynamic>["Hello, World!"]; 31 dynamic list = <dynamic>["Hello, World!"];
32 core::print(list.[](i)); 32 core::print(list.[](i));
33 list.[]=(i, "Hello, Brave New World!"); 33 list.[]=(i, "Hello, Brave New World!");
34 core::print(list.[](i)); 34 core::print(list.[](i));
(...skipping 30 matching lines...) Expand all
65 self::caller(({dynamic x}) → dynamic { 65 self::caller(({dynamic x}) → dynamic {
66 core::print("<anon> was called with ${x}"); 66 core::print("<anon> was called with ${x}");
67 }); 67 });
68 core::print(core::int.toString()); 68 core::print(core::int.toString());
69 core::print(core::int); 69 core::print(core::int);
70 core::print(let final dynamic #t5 = core::int in let final dynamic #t6 = #t5.t oString() in #t5); 70 core::print(let final dynamic #t5 = core::int in let final dynamic #t6 = #t5.t oString() in #t5);
71 try { 71 try {
72 core::print(throw new core::NoSuchMethodError::•(null, #toString, <dynamic>[ ], <dynamic, dynamic>{}, null)); 72 core::print(throw new core::NoSuchMethodError::•(null, #toString, <dynamic>[ ], <dynamic, dynamic>{}, null));
73 throw "Shouldn't work"; 73 throw "Shouldn't work";
74 } 74 }
75 on core::NoSuchMethodError catch(dynamic e) { 75 on core::NoSuchMethodError catch(final dynamic e) {
76 core::print("As expected: ${e}"); 76 core::print("As expected: ${e}");
77 } 77 }
78 core::print(core::int::parse("42")); 78 core::print(core::int::parse("42"));
79 } 79 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/accessors.dart.direct.expect ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698