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

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

Issue 10916335: Report errors when the number of arguments don't match the number of parameters in a const construc… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
===================================================================
--- lib/compiler/implementation/warnings.dart (revision 12420)
+++ lib/compiler/implementation/warnings.dart (working copy)
@@ -88,6 +88,8 @@
"'Object' cannot have a super initializer");
static const DUPLICATE_SUPER_INITIALIZER = const MessageKind(
'cannot have more than one super initializer');
+ static const INVALID_NUMBER_OF_ARGUMENTS = const MessageKind(
+ "invalid number of arguments passed to #{1}");
kasperl 2012/09/17 09:01:45 Doesn't seem quite accurate when there's a mismatc
static const NO_MATCHING_CONSTRUCTOR = const MessageKind(
"super call arguments and constructor parameters don't match");
static const NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT = const MessageKind(

Powered by Google App Engine
This is Rietveld 408576698