| Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| index a2be1b4283495c302d38a0f88c677e700a060c4d..719c37f7d8fd18fca5613ab0d19564c4227f7926 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
|
| @@ -1971,7 +1971,7 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
|
| assertInferredElementTypeString(libraryResult, "v2", "double");
|
| assertInferredElementTypeString(libraryResult, "v3", "double");
|
| }
|
| -
|
| +
|
| public void test_typesPropagation_FunctionAliasType() throws Exception {
|
| AnalyzeLibraryResult libraryResult = analyzeLibrary(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| @@ -2454,6 +2454,17 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase {
|
|
|
| }
|
|
|
| + public void testExpectedPositionalArgument() throws Exception {
|
| + AnalyzeLibraryResult libraryResult = analyzeLibrary(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "method1(a, [b]) {}",
|
| + "method2() {",
|
| + " method1(b:1);",
|
| + "}");
|
| + assertErrors(libraryResult.getErrors(),
|
| + errEx(TypeErrorCode.EXPECTED_POSITIONAL_ARGUMENT, 4, 11, 3));
|
| + }
|
| +
|
| private AnalyzeLibraryResult analyzeLibrary(String... lines) throws Exception {
|
| return analyzeLibrary(getName(), makeCode(lines));
|
| }
|
|
|