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

Unified Diff: tests/language/sync_generator1_test.dart

Issue 910243002: Re-apply "Fix warning in sync_generator1_test.dart" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/sync_generator1_test.dart
diff --git a/tests/language/sync_generator1_test.dart b/tests/language/sync_generator1_test.dart
index 365e6bd90bda39abd5ae7ca5fb62eb7b5ae8c8a3..6c2b7d701ebc1142551a2b8b80aafafab5546663 100644
--- a/tests/language/sync_generator1_test.dart
+++ b/tests/language/sync_generator1_test.dart
@@ -43,7 +43,8 @@ einsZwei() sync* {
}
dreiVier() sync* {
- yield* 3; // Throws type error: yielded object is not an iterable.
+ // Throws type error: yielded object is not an iterable.
+ yield* 3; /// 01: static type warning
}
main() {
@@ -79,6 +80,6 @@ main() {
print(einsZwei());
Expect.equals("(1, 2, 3, 5, [6])", einsZwei().toString());
- Expect.throws(() => dreiVier().toString());
+ Expect.throws(() => dreiVier().toString()); /// 01: continued
}
}
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698