| Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| index d9ca7cb4a9b8c6be3935f85d7816b7856fa26c94..344de4125c338b101cbd53c285cfc537bd15c7a9 100644
|
| --- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| +++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
|
| @@ -1339,20 +1339,6 @@ public class DartParser extends CompletionHooksParserBase {
|
| }
|
| }
|
|
|
| - // Interface method declaration can not have default values for named parameters.
|
| - if (isParsingInterface) {
|
| - validateNoDefaultParameterValues(
|
| - parameters,
|
| - ParserErrorCode.DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_INTERFACE);
|
| - }
|
| -
|
| - // Abstract method declaration can not have default values for named parameters.
|
| - if (modifiers.isAbstract()) {
|
| - validateNoDefaultParameterValues(
|
| - parameters,
|
| - ParserErrorCode.DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT);
|
| - }
|
| -
|
| // Parse initializer expressions for constructors.
|
| List<DartInitializer> initializers = new ArrayList<DartInitializer>();
|
| if (match(Token.COLON) && !(isParsingInterface || modifiers.isFactory())) {
|
|
|