| 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 6cd8bf7827b2cbec2839d989b11f1a7139a16340..2c1df0d1e4f350b7a4c86b8475ace39b545a6ad5 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
|
| @@ -559,6 +559,13 @@ public class CompileTimeErrorCodeTest extends ResolverTestCase {
|
| check_constEvalTypeBool_withParameter_binary("p || ''");
|
| }
|
|
|
| + public void test_constEvalTypeBool_binary_leftTrue() throws Exception {
|
| + Source source = addSource("const C = (true || 0);");
|
| + resolve(source);
|
| + assertErrors(CompileTimeErrorCode.CONST_EVAL_TYPE_BOOL);
|
| + verify(source);
|
| + }
|
| +
|
| public void test_constEvalTypeBoolNumString_equal() throws Exception {
|
| Source source = addSource(createSource(//
|
| "class A {",
|
|
|