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

Unified Diff: pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart

Issue 2904263003: Implement type inference for await expressions in front_end. (Closed)
Patch Set: Created 3 years, 7 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/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart
diff --git a/pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart b/pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart
index 852a9036a57c10b63a8b882431c0bcfc0c19ddad..667eaefb889f9f1c88a3a1d0c1c4e9d4ea490271 100644
--- a/pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart
+++ b/pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_generic_return.dart
@@ -9,7 +9,9 @@ import 'dart:async';
T id<T>(T x) => x;
-main() async {
+test() async {
Future<String> f;
String s = await /*@typeArgs=FutureOr<String>*/ id(f);
}
+
+main() {}

Powered by Google App Engine
This is Rietveld 408576698