Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java

Issue 15736017: Issue 1015. Report problem for incompatible right operand and index types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698