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

Side by Side Diff: tests/language/type_promotion_parameter_test.dart

Issue 85633002: Handle parenthesized expression in type promotion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comments. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/type_promotion_logical_and_test.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test type promotion of parameters. 5 // Test type promotion of parameters.
6 6
7 class A { 7 class A {
8 var a = "a"; 8 var a = "a";
9 } 9 }
10 class B extends A { 10 class B extends A {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 && a.c == "" 183 && a.c == ""
184 && a.d == "" /// 51: static type warning 184 && a.d == "" /// 51: static type warning
185 ) { 185 ) {
186 print(a.a); 186 print(a.a);
187 print(a.b); 187 print(a.b);
188 print(a.c); 188 print(a.c);
189 print(a.d); /// 52: static type warning 189 print(a.d); /// 52: static type warning
190 } 190 }
191 if ((a is B)) { 191 if ((a is B)) {
192 print(a.a); 192 print(a.a);
193 print(a.b); /// 53: static type warning 193 print(a.b);
194 print(a.c); /// 54: static type warning 194 print(a.c); /// 54: static type warning
195 print(a.d); /// 55: static type warning 195 print(a.d); /// 55: static type warning
196 } 196 }
197 if ((a is B && (a) is C) && a is B) {
198 print(a.a);
199 print(a.b);
200 print(a.c);
201 print(a.d); /// 56: static type warning
202 }
197 } 203 }
OLDNEW
« no previous file with comments | « tests/language/type_promotion_logical_and_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698