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

Unified Diff: test/checker/checker_test.dart

Issue 1209413002: Fixes #246 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 | « lib/src/checker/checker.dart ('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 1a2cf7a3040c4bc7ba4203ff7dabb0892ba94dd4..374da04ad460449f4d2c715707193052f5d0027c 100644
--- a/test/checker/checker_test.dart
+++ b/test/checker/checker_test.dart
@@ -2686,6 +2686,16 @@ void main() {
Future bar2() async { return x; }
Future<int> bar3() async { return (/*info:DynamicCast*/x); }
Future<int> bar4() async { return (/*severe:StaticTypeError*/new Future<int>(x)); }
+
+ int y;
+ Future<int> z;
+
+ void baz() async {
+ int a = /*info:DynamicCast*/await /*info:DynamicCast*/x;
+ int b = await /*severe:StaticTypeError*/y;
+ int c = await z;
+ String d = /*severe:StaticTypeError*/await z;
+ }
'''
}));
« no previous file with comments | « lib/src/checker/checker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698