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

Unified Diff: tests/language/async_await_syntax_test.dart

Issue 895673005: Add static type checking of "yield*" statements to analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests. Created 5 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: tests/language/async_await_syntax_test.dart
diff --git a/tests/language/async_await_syntax_test.dart b/tests/language/async_await_syntax_test.dart
index 5b859d49ed2c793f075814d976ba6dda39c61cf6..ea746368de0deeb6b2e8397fa7e4d7eb3bd762ed 100644
--- a/tests/language/async_await_syntax_test.dart
+++ b/tests/language/async_await_syntax_test.dart
@@ -168,10 +168,10 @@ method2() {
var d06a = () async { await for (var o in st) {} }; d06a(); /// d06a: ok
var d07a = () sync* { yield 0; }; d07a(); /// d07a: ok
var d08a = () sync* { yield* []; }; d08a(); /// d08a: ok
- var d08b = () sync* { yield*0+1; }; d08b(); /// d08b: ok
+ var d08b = () sync* { yield*0+1; }; d08b(); /// d08b: static type warning
var d08c = () { yield*0+1; }; d08c(); /// d08c: ok
var d09a = () async* { yield 0; }; d09a(); /// d09a: ok
- var d10a = () async* { yield* []; }; d10a(); /// d10a: ok
+ var d10a = () async* { yield* []; }; d10a(); /// d10a: static type warning
}
« no previous file with comments | « pkg/analyzer/test/generated/static_type_warning_code_test.dart ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698