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

Unified Diff: tests/language/type_parameter_test.dart

Issue 10996039: Bring type variables into static scope, but produce compile-time error when they are used. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Just rebased Created 8 years, 2 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
Index: tests/language/type_parameter_test.dart
diff --git a/tests/language/type_parameter_test.dart b/tests/language/type_parameter_test.dart
index 9d2c9dc2fc049e3750f85c35edac70c84356a361..0690564db0247dc63de1a8225cbc0c4fa7957202 100644
--- a/tests/language/type_parameter_test.dart
+++ b/tests/language/type_parameter_test.dart
@@ -15,18 +15,18 @@ class A<T> {
}
static
- T /// 01: static type warning, dynamic type error
+ T /// 01: compile-time error
staticMethod(
- T /// 02: static type warning, dynamic type error
+ T /// 02: compile-time error
a) {
final
- T /// 03: static type warning, dynamic type error
+ T /// 03: compile-time error
a = null;
print(a);
}
static final
- T /// 04: static type warning, dynamic type error
+ T /// 04: compile-time error
staticField = null;
}

Powered by Google App Engine
This is Rietveld 408576698