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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « submodules.txt ('k') | test/kernel/regression/unresolved_for_in.dart.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/kernel/regression/unresolved_for_in.dart
diff --git a/test/kernel/regression/unresolved_for_in.dart b/test/kernel/regression/unresolved_for_in.dart
index 379918a5d998552b94cb467b20df7abd7d318913..b9e9c1bcc9958a9f60b47e12e32a7137a4dfc7d7 100644
--- a/test/kernel/regression/unresolved_for_in.dart
+++ b/test/kernel/regression/unresolved_for_in.dart
@@ -2,10 +2,45 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
+import 'dart:collection' as collection;
+
+typedef void VoidFunction();
+
class Fisk {
it1(x) {
for (key in x) {
print(key);
}
+ for (Fisk in x) {
+ print(Fisk);
+ }
+ for (collection in x) {
+ print(collection);
+ }
+ for (VoidFunction in x) {
+ print(VoidFunction);
+ }
+ for (1 in x) {
+ print(key);
+ }
+ }
+}
+
+main(arguments) {
+ new Fisk();
+ for (key in arguments) {
+ print(key);
+ }
+ for (Fisk in arguments) {
+ print(Fisk);
+ }
+ for (collection in arguments) {
+ print(collection);
+ }
+ for (VoidFunction in arguments) {
+ print(VoidFunction);
+ }
+ for (1 in arguments) {
+ print(key);
}
}
« 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