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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java

Issue 22926002: Report DEFAULT_VALUE_IN_FUNCTION_TYPE_PARAMETER. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
index f84a33bfa2083ccd714ca2b66519975596c4e889..1919736a6a717c9e3223c19baaa08307d3c69bca 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java
@@ -287,6 +287,14 @@ public enum CompileTimeErrorCode implements ErrorCode {
DEFAULT_VALUE_IN_FUNCTION_TYPE_ALIAS("Default values aren't allowed in typedefs"),
/**
+ * 6.2.1 Required Formals: By means of a function signature that names the parameter and describes
+ * its type as a function type. It is a compile-time error if any default values are specified in
+ * the signature of such a function type.
+ */
+ DEFAULT_VALUE_IN_FUNCTION_TYPED_PARAMETER(
+ "Default values aren't allowed in function type parameters"),
+
+ /**
* 3.1 Scoping: It is a compile-time error if there is more than one entity with the same name
* declared in the same scope.
*/

Powered by Google App Engine
This is Rietveld 408576698