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

Unified Diff: frog/leg/warnings.dart

Issue 9310066: Generate a resolution error if a unary + is used for something other than numbers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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: frog/leg/warnings.dart
===================================================================
--- frog/leg/warnings.dart (revision 3845)
+++ frog/leg/warnings.dart (working copy)
@@ -79,11 +79,13 @@
static final NO_CONSTRUCTOR = const MessageKind(
'#{1} is a #{2}, not a constructor');
static final FIELD_PARAMETER_NOT_ALLOWED = const MessageKind(
- 'A field parameter is only allowed in generative constructors');
+ 'a field parameter is only allowed in generative constructors');
static final INVALID_PARAMETER = const MessageKind(
- "Cannot resolve parameter");
+ "cannot resolve parameter");
static final NOT_INSTANCE_FIELD = const MessageKind(
'#{1} is not an instance field');
+ static final NO_UNARY_ADD = const MessageKind(
+ 'unary + is only applicable to number literals');
static final NOT_A_COMPILE_TIME_CONSTANT = const MessageKind(
'#{1} cannot be used as compile-time constant');

Powered by Google App Engine
This is Rietveld 408576698