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

Unified Diff: lib/compiler/implementation/warnings.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: Removed passing test from the exception list. Created 8 years, 3 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 3c0ec5300aa8bd1231f8a0cefca979b9b3e21b78..fe29c49c2b3d8d7da1e7af333e42ba5572c1225e 100644
--- a/lib/compiler/implementation/warnings.dart
+++ b/lib/compiler/implementation/warnings.dart
@@ -256,6 +256,9 @@ class MessageKind {
static const VOID_NOT_ALLOWED = const MessageKind(
'type void is only allowed in a return type.');
+ static const CANNOT_ACCESS_TYPE_VARIABLE_IN_STATIC_CONTEXT =
+ const MessageKind( 'cannot access type variable #{1} in static context');
+
static const INVALID_SOURCE_FILE_LOCATION = const MessageKind('''
Invalid offset (#{1}) in source map.
File: #{2}

Powered by Google App Engine
This is Rietveld 408576698