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

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

Issue 12620002: Emit compile time error on static non-members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adjust test expectations. Created 7 years, 9 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 | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/sdk/lib/_internal/compiler/implementation/warnings.dart b/sdk/lib/_internal/compiler/implementation/warnings.dart
index 36c19337529ab3c6dcc492dbc57f9f2181529f6a..c5e4e074e2b175bf082816bfa0389af01531b4da 100644
--- a/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -392,6 +392,9 @@ Length: #{length}''');
static const COMPILER_CRASHED = const MessageKind(
"Error: The compiler crashed when compiling this element.");
+ static const ILLEGAL_STATIC = const MessageKind(
+ "Error: Static is only allowed on functions declared in a class.");
Johnni Winther 2013/03/07 17:39:51 Static -> static or 'static' to avoid capitalizing
karlklose 2013/03/08 09:15:00 Done.
+
static const PLEASE_REPORT_THE_CRASH = const MessageKind('''
The compiler is broken.
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698