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

Side by Side Diff: test/codegen/cascade.dart

Issue 1062823004: Fix a couple codegen crashers (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 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 | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/cascade.js » ('j') | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 class A { 5 class A {
6 var x; 6 var x;
7 } 7 }
8 8
9 void test_closure_with_mutate() { 9 void test_closure_with_mutate() {
10 var a = new A(); 10 var a = new A();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 void test_VariableDeclaration_first() { 64 void test_VariableDeclaration_first() {
65 var a = [] 65 var a = []
66 ..length = 2 66 ..length = 2
67 ..add(3), 67 ..add(3),
68 b = 2; 68 b = 2;
69 print(a); 69 print(a);
70 } 70 }
71 71
72 void test_increment() {
73 var a = new A();
74 var y = a
75 ..x += 1
76 ..x -= 1;
77 }
78
72 class Base<T> { 79 class Base<T> {
73 final List<T> x = <T>[]; 80 final List<T> x = <T>[];
74 } 81 }
75 82
76 class Foo extends Base<int> { 83 class Foo extends Base<int> {
77 void test_final_field_generic(t) { 84 void test_final_field_generic(t) {
78 x..add(1)..add(2)..add(3)..add(4); 85 x..add(1)..add(2)..add(3)..add(4);
79 } 86 }
80 } 87 }
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/cascade.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698