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

Unified Diff: tests/language/type_parameter_test.dart

Issue 54983007: Make test of malformed types a dynamic type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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 | « tests/language/on_catch_malformed_type_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_parameter_test.dart
diff --git a/tests/language/type_parameter_test.dart b/tests/language/type_parameter_test.dart
index 7a39eeb8c274940531f4a06568cf15ab3283861b..9493e22acab5f750e66b586933a002b6ac607c79 100644
--- a/tests/language/type_parameter_test.dart
+++ b/tests/language/type_parameter_test.dart
@@ -17,28 +17,28 @@ class A<T> {
}
static
- T /// 01: static type warning
+ T /// 01: static type warning, dynamic type error
staticMethod(
- T /// 02: static type warning
+ T /// 02: static type warning, dynamic type error
a) {
final
- T /// 03: static type warning
+ T /// 03: static type warning, dynamic type error
a = "not_null";
print(a);
return a;
}
static final
- T /// 04: static type warning
+ T /// 04: static type warning, dynamic type error
staticFinalField = "not_null";
static const
- T /// 05: static type warning
+ T /// 05: static type warning, dynamic type error
staticConstField = "not_null";
static not_null() => "not_null";
static final
- T /// 06: static type warning
+ T /// 06: static type warning, dynamic type error
staticFinalField2 = not_null();
// Assigning null to a malformed type is not a dynamic error.
« no previous file with comments | « tests/language/on_catch_malformed_type_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698