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

Unified Diff: lib/type_environment.dart

Issue 2473523004: Fix expected return type in async functions (Closed)
Patch Set: Also handle yield* Created 4 years, 1 month 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 | « lib/type_checker.dart ('k') | testcases/input/async_function.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/type_environment.dart
diff --git a/lib/type_environment.dart b/lib/type_environment.dart
index 47b1c285e867c1580b6cc172e42e9518f6570523..96f6a21a5f9847f98b411e8716f46199fb4ba589 100644
--- a/lib/type_environment.dart
+++ b/lib/type_environment.dart
@@ -17,6 +17,7 @@ class TypeEnvironment extends SubtypeTester {
DartType returnType;
DartType yieldType;
+ AsyncMarker currentAsyncMarker = AsyncMarker.Sync;
/// An error handler for use in debugging, or `null` if type errors should not
/// be tolerated. See [typeError].
« no previous file with comments | « lib/type_checker.dart ('k') | testcases/input/async_function.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698