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

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

Issue 11416004: Reject deprecated language features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: abstract class in resolver test Created 8 years, 1 month 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: dart/sdk/lib/_internal/compiler/implementation/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 97df27f403404f632d288398ad4ec3f5c37b3734..536f5fcad9eb8f133d716c8b1d7a5f0015c1d423 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -243,9 +243,20 @@ class MessageKind {
static const MISSING_FORMALS = const MessageKind(
"Error: Formal parameters are missing.");
- // TODO(ahe): Change the message below when it becomes an error.
static const EXTRA_FORMALS = const MessageKind(
- "Warning: Formal parameters will not be allowed here in M1.");
+ "Error: Formal parameters are not allowed here.");
+
+ // TODO(ahe): This message is hard to localize. This is acceptable,
+ // as it will be removed when we ship Dart version 1.0.
+ static const DEPRECATED_FEATURE_WARNING = const MessageKind(
+ "Warning: deprecated language feature, #{1}, "
+ "will be removed in a future Dart milestone.");
+
+ // TODO(ahe): This message is hard to localize. This is acceptable,
+ // as it will be removed when we ship Dart version 1.0.
+ static const DEPRECATED_FEATURE_ERROR = const MessageKind(
+ "Error: #{1} are not legal "
+ "due to option --reject-deprecated-language-features.");
static const CONSTRUCTOR_WITH_RETURN_TYPE = const MessageKind(
"Error: cannot have return type for constructor.");

Powered by Google App Engine
This is Rietveld 408576698