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

Unified Diff: lib/compiler/implementation/warnings.dart

Issue 11229002: Handle type variable in static member. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test update removed. 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: lib/compiler/implementation/warnings.dart
diff --git a/lib/compiler/implementation/warnings.dart b/lib/compiler/implementation/warnings.dart
index 581403644c32aa6301ef555144a37c9565afc0bb..f6f17fc02d136574a916ab0ee0aebdafc3c783d4 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -139,6 +139,8 @@ class MessageKind {
'cannot use type variable as constructor');
static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind(
'type variable #{1} already declared');
+ static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind(
+ 'cannot refer to type variable #{1} within a static member');
static const INVALID_BREAK = const MessageKind(
'target of break is not a statement');
static const INVALID_USE_OF_SUPER = const MessageKind(

Powered by Google App Engine
This is Rietveld 408576698