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

Unified Diff: tests/language/type_variable_scope_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_variable_scope_test.dart
diff --git a/tests/language/type_variable_scope_test.dart b/tests/language/type_variable_scope_test.dart
index 3a3aa8e7d0a198006d6d2521e9ad108e61accd7a..47957fa074418378f0cb315aba6f7c98ee0bdd8a 100644
--- a/tests/language/type_variable_scope_test.dart
+++ b/tests/language/type_variable_scope_test.dart
@@ -9,11 +9,11 @@ class Foo<T> {
// T is not in scope for a static method.
static
- Foo<T> /// 00: dynamic type error
+ Foo<T> /// 00: compile-time error
m(
- Foo<T> /// 01: dynamic type error
+ Foo<T> /// 01: compile-time error
f) {
- Foo<T> x = new Foo<String>(); /// 02: dynamic type error
+ Foo<T> x = new Foo<String>(); /// 02: compile-time error
return new Foo<String>();
}
@@ -23,14 +23,14 @@ class Foo<T> {
}
// T is not in scope for a static field.
- static Foo<T> f1; /// 03: dynamic type error
+ static Foo<T> f1; /// 03: compile-time error
static
- Foo<T> /// 04: dynamic type error
+ Foo<T> /// 04: compile-time error
get f { return new Foo<String>(); }
static void set f(
- Foo<T> /// 05: dynamic type error
+ Foo<T> /// 05: compile-time error
value) {}
}

Powered by Google App Engine
This is Rietveld 408576698