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

Side by Side Diff: pkg/kernel/testcases/closures/non_void_context.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Remove path constraint Created 4 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE.md file.
4
5 var v;
6
7 main(arguments) {
8 var w;
9 ((x) => v = w = x)(87);
10 if (v != 87) {
11 throw "Unexpected value in v: $v";
12 }
13 if (w != 87) {
14 throw "Unexpected value in w: $w";
15 }
16 v = true;
17 (() {
18 for (; w = v;) {
19 v = false;
20 }
21 })();
22 if (v != false) {
23 throw "Unexpected value in v: $v";
24 }
25 if (w != false) {
26 throw "Unexpected value in w: $w";
27 }
28 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/named_closure.dart.expect ('k') | pkg/kernel/testcases/closures/non_void_context.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698