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

Side by Side Diff: test/kernel/regression/unresolved_for_in.dart

Issue 2059733002: More bad for-in loop variables. (Closed) Base URL: git@github.com:dart-lang/rasta.git@parser_crash
Patch Set: Created 4 years, 6 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 | « submodules.txt ('k') | test/kernel/regression/unresolved_for_in.dart.txt » ('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) 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 import 'dart:collection' as collection;
6
7 typedef void VoidFunction();
8
5 class Fisk { 9 class Fisk {
6 it1(x) { 10 it1(x) {
7 for (key in x) { 11 for (key in x) {
8 print(key); 12 print(key);
9 } 13 }
14 for (Fisk in x) {
15 print(Fisk);
16 }
17 for (collection in x) {
18 print(collection);
19 }
20 for (VoidFunction in x) {
21 print(VoidFunction);
22 }
23 for (1 in x) {
24 print(key);
25 }
10 } 26 }
11 } 27 }
28
29 main(arguments) {
30 new Fisk();
31 for (key in arguments) {
32 print(key);
33 }
34 for (Fisk in arguments) {
35 print(Fisk);
36 }
37 for (collection in arguments) {
38 print(collection);
39 }
40 for (VoidFunction in arguments) {
41 print(VoidFunction);
42 }
43 for (1 in arguments) {
44 print(key);
45 }
46 }
OLDNEW
« no previous file with comments | « submodules.txt ('k') | test/kernel/regression/unresolved_for_in.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698