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

Unified Diff: tests/language/type_variable_scope2_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_scope2_test.dart
diff --git a/tests/language/type_variable_scope2_test.dart b/tests/language/type_variable_scope2_test.dart
index 1c039142f223ac7f69373bd785c14db3c23a51bb..d036804f44d7637c5ac5f6f828ff8bee2bae6684 100644
--- a/tests/language/type_variable_scope2_test.dart
+++ b/tests/language/type_variable_scope2_test.dart
@@ -16,7 +16,9 @@ isCheckedMode() {
class Foo<T> {
// T is not in scope for a static method.
- static Foo<T> m() {
+ static Foo
+ <T> /// 01: compile-time error
+ m() {
return new Foo();
}
}

Powered by Google App Engine
This is Rietveld 408576698