Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/resolution/members.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/resolution/members.dart (revision 30984) |
| +++ sdk/lib/_internal/compiler/implementation/resolution/members.dart (working copy) |
| @@ -324,7 +324,10 @@ |
| originParameter.parseNode(compiler).toString(); |
| String patchParameterText = |
| patchParameter.parseNode(compiler).toString(); |
| - if (originParameterText != patchParameterText) { |
| + if (originParameterText != patchParameterText |
| + // We special case the list constructor because of the |
| + // optional parameter. |
| + && origin != compiler.unnamedListConstructor) { |
|
ahe
2013/12/10 18:57:44
Why is a special case needed?
Why can't the publi
ngeoffray
2013/12/10 22:08:31
The patch code says:
factory List([int length = co
|
| compiler.reportError( |
| originParameter.parseNode(compiler), |
| MessageKind.PATCH_PARAMETER_MISMATCH, |