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

Unified Diff: tests/language/type_variable_scope_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/type_variable_scope2_test.dart ('k') | tests/language/wrong_number_type_arguments_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2cee6627e0b0373e92ac0ced6352753ada19d513..cfc770d80a0d83f98b8bdfbd65a3556d8eb1d10a 100644
--- a/tests/language/type_variable_scope_test.dart
+++ b/tests/language/type_variable_scope_test.dart
@@ -8,11 +8,11 @@ class Foo<T> {
Foo() { }
static
- Foo<T> /// 00: dynamic type error
+ Foo<T> /// 00: static type warning
m(
- Foo<T> /// 01: dynamic type error
+ Foo<T> /// 01: static type warning
f) {
- Foo<T> x = new Foo<String>(); /// 02: dynamic type error
+ Foo<T> x = new Foo<String>(); /// 02: static type warning
return new Foo<String>();
}
@@ -22,14 +22,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: static type warning
static
- Foo<T> /// 04: dynamic type error
+ Foo<T> /// 04: static type warning
get f { return new Foo<String>(); }
static void set f(
- Foo<T> /// 05: dynamic type error
+ Foo<T> /// 05: static type warning
value) {}
}
« no previous file with comments | « tests/language/type_variable_scope2_test.dart ('k') | tests/language/wrong_number_type_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698