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

Unified Diff: tests/language/type_parameter_test.dart

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 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 | « tests/language/try_catch_syntax_test.dart ('k') | tests/language/type_variable_bounds_test.dart » ('j') | 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 7b0a9965f8e891f1282b2fee4b4b4dd824d6de0c..7a39eeb8c274940531f4a06568cf15ab3283861b 100644
--- a/tests/language/type_parameter_test.dart
+++ b/tests/language/type_parameter_test.dart
@@ -17,32 +17,30 @@ class A<T> {
}
static
- T /// 01: static type warning, dynamic type error
+ T /// 01: static type warning
staticMethod(
- T /// 02: static type warning, dynamic type error
+ T /// 02: static type warning
a) {
final
- T /// 03: static type warning, dynamic type error
+ T /// 03: static type warning
a = "not_null";
print(a);
return a;
}
static final
- T /// 04: static type warning, dynamic type error
+ T /// 04: static type warning
staticFinalField = "not_null";
static const
- // TODO(regis): Support 'compile-time type error' in test.dart and use below.
- T /// 05: static type warning, compile-time error
+ T /// 05: static type warning
staticConstField = "not_null";
static not_null() => "not_null";
static final
- T /// 06: static type warning, dynamic type error
+ T /// 06: static type warning
staticFinalField2 = not_null();
-
// Assigning null to a malformed type is not a dynamic error.
static
T staticMethod2(T a) {
« no previous file with comments | « tests/language/try_catch_syntax_test.dart ('k') | tests/language/type_variable_bounds_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698