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

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

Issue 1516673002: Update confuse() on syncstar_less_than_test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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) 2015, the Dart Team. All rights reserved. Use of this 1 // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in 2 // source code is governed by a BSD-style license that can be found in
3 // the LICENSE file. 3 // the LICENSE file.
4 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 confuse(x) => [1, 'x', true, null, x].last; 7 @NoInline() @AssumeDynamic()
8 confuse(x) => x;
8 9
9 Iterable<int> foo() sync* { 10 Iterable<int> foo() sync* {
10 var a = confuse(1); 11 var a = confuse(1);
11 if (a < 10) { 12 if (a < 10) {
12 yield 2; 13 yield 2;
13 } 14 }
14 } 15 }
15 16
16 main() { 17 main() {
17 Expect.listEquals(foo().toList(), [2]); 18 Expect.listEquals(foo().toList(), [2]);
18 } 19 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698