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

Unified Diff: tests/language/async_await_syntax_test.dart

Issue 888943004: Implement new "yield*" type checking rules in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 ea746368de0deeb6b2e8397fa7e4d7eb3bd762ed..3c8c38b5cee9f016b21e01dac9b001daad3289e4 100644
--- a/tests/language/async_await_syntax_test.dart
+++ b/tests/language/async_await_syntax_test.dart
@@ -47,7 +47,7 @@ a07b() sync { yield 0; } /// a07b: compile-time error
a08a() sync* { yield* []; } /// a08a: ok
a08b() sync { yield 0; } /// a08b: compile-time error
a09a() async* { yield 0; } /// a09a: ok
-a10a() async* { yield* []; } /// a10a: ok
+a10a() async* { yield* []; } /// a10a: static type warning
get sync sync {} /// a11a: compile-time error
get sync sync* {} /// a11b: ok
@@ -112,7 +112,7 @@ class C extends B {
b07a() sync* { yield 0; } /// b07a: ok
b08a() sync* { yield* []; } /// b08a: ok
b09a() async* { yield 0; } /// b09a: ok
- b10a() async* { yield* []; } /// b10a: ok
+ b10a() async* { yield* []; } /// b10a: static type warning
get sync sync {} /// b11a: compile-time error
get sync sync* {} /// b11b: ok
@@ -153,7 +153,7 @@ method1() {
c07a() sync* { yield 0; } c07a(); /// c07a: ok
c08a() sync* { yield* []; } c08a(); /// c08a: ok
c09a() async* { yield 0; } c09a(); /// c09a: ok
- c10a() async* { yield* []; } c10a(); /// c10a: ok
+ c10a() async* { yield* []; } c10a(); /// c10a: static type warning
}
method2() {
« 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