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

Unified Diff: tests/language/first_class_types_literals_test.dart

Issue 680423003: Fix type analysis of the keyword "dynamic". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: tests/language/first_class_types_literals_test.dart
diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
index 2f32cfe57f82d3dad1a7b052efc9368fbf30b63f..c0a0e0f43ca110ea1860fde08d22242bdfc7c9d9 100644
--- a/tests/language/first_class_types_literals_test.dart
+++ b/tests/language/first_class_types_literals_test.dart
@@ -48,16 +48,16 @@ main() {
Expect.equals((D).runtimeType, (D).runtimeType.runtimeType);
// Test that operator calls on class literals go to Type.
- Expect.throws(() => C = 1, (e) => e is NoSuchMethodError);
- Expect.throws(() => C++, (e) => e is NoSuchMethodError);
- Expect.throws(() => C + 1, (e) => e is NoSuchMethodError);
- Expect.throws(() => C[2], (e) => e is NoSuchMethodError);
- Expect.throws(() => C[2] = 'hest', (e) => e is NoSuchMethodError);
- Expect.throws(() => dynamic = 1, (e) => e is NoSuchMethodError);
- Expect.throws(() => dynamic++, (e) => e is NoSuchMethodError);
- Expect.throws(() => dynamic + 1, (e) => e is NoSuchMethodError);
- Expect.throws(() => dynamic[2], (e) => e is NoSuchMethodError);
- Expect.throws(() => dynamic[2] = 'hest', (e) => e is NoSuchMethodError);
+ Expect.throws(() => C = 1, (e) => e is NoSuchMethodError); /// 03: static type warning
+ Expect.throws(() => C++, (e) => e is NoSuchMethodError); /// 04: static type warning
+ Expect.throws(() => C + 1, (e) => e is NoSuchMethodError); /// 05: static type warning
+ Expect.throws(() => C[2], (e) => e is NoSuchMethodError); /// 06: static type warning
+ Expect.throws(() => C[2] = 'hest', (e) => e is NoSuchMethodError); /// 07: static type warning
+ Expect.throws(() => dynamic = 1, (e) => e is NoSuchMethodError); /// 08: static type warning
+ Expect.throws(() => dynamic++, (e) => e is NoSuchMethodError); /// 09: static type warning
+ Expect.throws(() => dynamic + 1, (e) => e is NoSuchMethodError); /// 10: static type warning
+ Expect.throws(() => dynamic[2], (e) => e is NoSuchMethodError); /// 11: static type warning
+ Expect.throws(() => dynamic[2] = 'hest', (e) => e is NoSuchMethodError); /// 12: static type warning
Expect.equals((dynamic).toString(), 'dynamic');
}
« 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