Index: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
index 8f67edc7d97201ed7a588f26a477e8bc37fb2b37..a6c646489275bc17e584f50d9e5e42d6d4dc8508 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
@@ -1211,11 +1211,9 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase { |
"String s = 'foo';"); |
analyzeClasses(source); |
analyze("{ var c = a + b; }"); |
- analyzeFail("{ var c = s + b; }", |
- TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT); |
+ analyze("{ var c = s + b; }"); |
analyzeFail("var c = 'foo' + 1;", |
- TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT); |
- analyzeFail("var c = 'foo' + 'bar';", |
- TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT); |
+ TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE); |
+ analyze("var c = 'foo' + 'bar';"); |
} |
} |