Chromium Code Reviews| 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 89b81c2f17ffc5fa14926b81a69619b9061ff539..fcc496dac07b6111cf27a21a3a6ea163ae405583 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 |
| @@ -2161,7 +2161,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase { |
| " const A(String p) : a = 5 & p;", |
| "}")); |
| resolve(source); |
| - assertErrors(CompileTimeErrorCode.NON_CONSTANT_VALUE_IN_INITIALIZER); |
| + assertErrors( |
| + CompileTimeErrorCode.NON_CONSTANT_VALUE_IN_INITIALIZER, |
| + StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE); |
|
Brian Wilkerson
2013/05/23 13:18:11
I would prefer to see the test code changed so tha
|
| verify(source); |
| } |
| @@ -2172,7 +2174,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase { |
| " const A(String p) : a = 5 + p;", |
| "}")); |
| resolve(source); |
| - assertErrors(CompileTimeErrorCode.NON_CONSTANT_VALUE_IN_INITIALIZER); |
| + assertErrors( |
| + CompileTimeErrorCode.NON_CONSTANT_VALUE_IN_INITIALIZER, |
| + StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE); |
| verify(source); |
| } |
| @@ -2800,7 +2804,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase { |
| " const A(int p) : a = " + expr + ";", |
| "}")); |
| resolve(source); |
| - assertErrors(CompileTimeErrorCode.CONST_EVAL_TYPE_INT); |
| + assertErrors( |
| + CompileTimeErrorCode.CONST_EVAL_TYPE_INT, |
| + StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE); |
| verify(source); |
| reset(); |
| } |
| @@ -2812,7 +2818,9 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase { |
| " const A(num p) : a = " + expr + ";", |
| "}")); |
| resolve(source); |
| - assertErrors(CompileTimeErrorCode.CONST_EVAL_TYPE_NUM); |
| + assertErrors( |
| + CompileTimeErrorCode.CONST_EVAL_TYPE_NUM, |
| + StaticWarningCode.ARGUMENT_TYPE_NOT_ASSIGNABLE); |
| verify(source); |
| reset(); |
| } |