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

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

Issue 19802003: Report an error if a const constructor calls a non-const constructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/warnings.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/warnings.dart (revision 25201)
+++ sdk/lib/_internal/compiler/implementation/warnings.dart (working copy)
@@ -120,6 +120,8 @@
"super call arguments and constructor parameters don't match");
static const NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind(
"implicit super call arguments and constructor parameters don't match");
+ static const CONST_CALLS_NON_CONST = const MessageKind(
+ "const constructor cannot call a non-const constructor");
static const INITIALIZING_FORMAL_NOT_ALLOWED = const MessageKind(
'an initializing formal parameter is only allowed in '
'non-redirecting generative constructors');

Powered by Google App Engine
This is Rietveld 408576698