| Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java
|
| index e92aaa5519630bfacae95e2ea78f31aef0dce21e..8a043eff5d937ee973bd4de25828ea1be3f150ca 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java
|
| @@ -897,6 +897,22 @@ public class ResolverCompilerTest extends CompilerTestCase {
|
| }
|
|
|
| /**
|
| + * <p>
|
| + * http://code.google.com/p/dart/issues/detail?id=3793
|
| + */
|
| + public void test_functionLiteral_parameterShadowsParentLiteral() throws Exception {
|
| + AnalyzeLibraryResult libraryResult = analyzeLibrary(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "main() {",
|
| + " (foo(foo)=>foo)(1);",
|
| + "}",
|
| + "");
|
| + assertErrors(
|
| + libraryResult.getErrors(),
|
| + errEx(ResolverErrorCode.DUPLICATE_PARAMETER_WARNING, 3, 8, 3));
|
| + }
|
| +
|
| + /**
|
| * Asserts that given nodes have same not <code>null</code> {@link Element}.
|
| */
|
| private static void assertDeclarationNameElement(
|
|
|