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

Side by Side Diff: pkg/front_end/test/fasta/super_rasta_copy.dart

Issue 2710503002: Run Ctrl-t on weirdly formatted test. (Closed)
Patch Set: Created 3 years, 10 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/rasta/super.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 // TODO(ahe): This is a copy of [rasta/super.dart] without the `n` 5 // TODO(ahe): This is a copy of [rasta/super.dart] without the `n`
6 // property. Remove this once fasta can handle all of the original file. 6 // property. Remove this once fasta can handle all of the original file.
7 7
8 class A { 8 class A {
9 var a; 9 var a;
10 var b; 10 var b;
(...skipping 13 matching lines...) Expand all
24 24
25 operator ==(other) => true; 25 operator ==(other) => true;
26 26
27 void m() {} 27 void m() {}
28 } 28 }
29 29
30 class B extends A { 30 class B extends A {
31 get b => null; 31 get b => null;
32 set c(x) {} 32 set c(x) {}
33 final d; 33 final d;
34 set i(x) {}} 34 set i(x) {}
35 35 }
36 36
37 class C extends B { 37 class C extends B {
38 test() { 38 test() {
39 ~super; 39 ~super;
40 use(~super); 40 use(~super);
41 -super; 41 -super;
42 use(-super); 42 use(-super);
43 super == 87; 43 super == 87;
44 use(super == 87); 44 use(super == 87);
45 super != 87; 45 super != 87;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 main() { 240 main() {
241 try { 241 try {
242 new C().test(); 242 new C().test();
243 } on NoSuchMethodError { 243 } on NoSuchMethodError {
244 return; // Test passed. 244 return; // Test passed.
245 } 245 }
246 throw "Test failed"; 246 throw "Test failed";
247 } 247 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/rasta/super.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698