| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| index 33635b792239a415fc0d4f2ab6d27224b94cd685..e8e820c0480c7873ba0b8ec6045286252223c4cd 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java
|
| @@ -2655,6 +2655,25 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
|
|
| public void test_privateOptionalParameter() throws Exception {
|
| Source source = addSource(createSource(//
|
| + "f({var _p}) {}"));
|
| + resolve(source);
|
| + assertErrors(CompileTimeErrorCode.PRIVATE_OPTIONAL_PARAMETER);
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_privateOptionalParameter_fieldFormal() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "class A {",
|
| + " var _p;",
|
| + " A({this._p: 0});",
|
| + "}"));
|
| + resolve(source);
|
| + assertErrors(CompileTimeErrorCode.PRIVATE_OPTIONAL_PARAMETER);
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_privateOptionalParameter_withDefaultValue() throws Exception {
|
| + Source source = addSource(createSource(//
|
| "f({_p : 0}) {}"));
|
| resolve(source);
|
| assertErrors(CompileTimeErrorCode.PRIVATE_OPTIONAL_PARAMETER);
|
|
|