| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| index 8dc41807dd8060808a2ad30c25a3cc01d81a6680..b39eeb00e32f30c455a4a041852de5a8416bce72 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
|
| @@ -544,6 +544,22 @@ public class NonErrorResolverTest extends ResolverTestCase {
|
| verify(source);
|
| }
|
|
|
| + public void test_defaultValueInFunctionTypedParameter_named() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "f(g({p})) {}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| + public void test_defaultValueInFunctionTypedParameter_optional() throws Exception {
|
| + Source source = addSource(createSource(//
|
| + "f(g([p])) {}"));
|
| + resolve(source);
|
| + assertNoErrors();
|
| + verify(source);
|
| + }
|
| +
|
| public void test_duplicateDefinition_emptyName() throws Exception {
|
| // Note: This code has two FunctionElements '() {}' with an empty name, this tests that the
|
| // empty string is not put into the scope (more than once).
|
|
|