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

Unified Diff: tests/language/src/TypeVariableShadowsClass.dart

Issue 9307010: Type Variables cannot be used in identifier expressions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/src/TypeVariableShadowsClass.dart
diff --git a/tests/language/src/TypeVariableShadowsClass.dart b/tests/language/src/TypeVariableShadowsClass.dart
index a13815c5af061a54577170bff494fe086f69e8eb..1d0538a8d5de52f4b2cb2a99d8ebe3f488119616 100644
--- a/tests/language/src/TypeVariableShadowsClass.dart
+++ b/tests/language/src/TypeVariableShadowsClass.dart
@@ -7,6 +7,7 @@
class T {
String toString() => "Class T";
+ static String staticToString() => "Class T (static)";
}
class A<T> {
@@ -14,8 +15,13 @@ class A<T> {
var foo = new T();
Expect.equals("Class T", foo.toString());
}
+ instMethod() {
+ var foo = T.staticToString();
+ Expect.equals("Class T (static)", foo);
+ }
}
main() {
A.method();
+ new A<String>().instMethod();
}

Powered by Google App Engine
This is Rietveld 408576698