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

Unified Diff: pkg/fasta/test/rasta/unresolved_for_in.dart

Issue 2650913007: Import rasta tests. (Closed)
Patch Set: Address comment. Created 3 years, 11 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
Index: pkg/fasta/test/rasta/unresolved_for_in.dart
diff --git a/pkg/fasta/test/rasta/unresolved_for_in.dart b/pkg/fasta/test/rasta/unresolved_for_in.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b9e9c1bcc9958a9f60b47e12e32a7137a4dfc7d7
--- /dev/null
+++ b/pkg/fasta/test/rasta/unresolved_for_in.dart
@@ -0,0 +1,46 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// 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);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698