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

Unified Diff: test/checker/checker_test.dart

Issue 1248213002: allow await to be any value, fixes part of #264 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 5 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/checker_test.dart
diff --git a/test/checker/checker_test.dart b/test/checker/checker_test.dart
index 77ec7202cdd854411db0788020dbb1f77b8afd8f..1eee30980d8a1d454c193e1a35ab7bd38ccff6f9 100644
--- a/test/checker/checker_test.dart
+++ b/test/checker/checker_test.dart
@@ -2692,11 +2692,16 @@ void main() {
Future<int> z;
void baz() async {
- int a = /*info:DynamicCast*/await /*info:DynamicCast*/x;
- int b = await /*severe:StaticTypeError*/y;
+ int a = /*info:DynamicCast*/await x;
+ int b = await y;
int c = await z;
String d = /*severe:StaticTypeError*/await z;
}
+
+ Future<bool> get issue_264 async {
+ await 42;
+ return false;
+ }
'''
}));
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698