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

Unified Diff: tests/language_2/type_variable_scope_test.dart

Issue 3008723002: Migrate block 163 to Dart 2.0. (Closed)
Patch Set: Merge fixups Created 3 years, 4 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_2/type_variable_scope_test.dart
diff --git a/tests/language/type_variable_scope_test.dart b/tests/language_2/type_variable_scope_test.dart
similarity index 74%
rename from tests/language/type_variable_scope_test.dart
rename to tests/language_2/type_variable_scope_test.dart
index efc55e38582deae7104b781f5dd43294b645272e..b219b2903c445cdad8920a5bd3b089b378a7dcf4 100644
--- a/tests/language/type_variable_scope_test.dart
+++ b/tests/language_2/type_variable_scope_test.dart
@@ -8,11 +8,11 @@ class Foo<T> {
Foo() {}
static
- Foo<T> //# 00: static type warning
+ Foo<T> //# 00: compile-time error
m(
- Foo<T> //# 01: static type warning
+ Foo<T> //# 01: compile-time error
f) {
- Foo<T> x = new Foo<String>(); //# 02: static type warning
+ Foo<T> x = new Foo<String>(); //# 02: compile-time error
return new Foo<String>();
}
@@ -22,16 +22,16 @@ class Foo<T> {
}
// T is not in scope for a static field.
- static Foo<T> f1; //# 03: static type warning
+ static Foo<T> f1; //# 03: compile-time error
static
- Foo<T> //# 04: static type warning
+ Foo<T> //# 04: compile-time error
get f {
return new Foo<String>();
}
static void set f(
- Foo<T> //# 05: static type warning
+ Foo<T> //# 05: compile-time error
value) {}
}
« no previous file with comments | « tests/language_2/type_variable_scope3_test.dart ('k') | tests/language_2/type_variable_static_context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698