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 03ad658a9b5e1665ea97e42486a72c286419a425..ba49e4dcd1d022e286a51f825b34143e9db6b4a2 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java |
@@ -6509,4 +6509,16 @@ public class TypeAnalyzerCompilerTest extends CompilerTestCase { |
errEx(ResolverErrorCode.CANNOT_MIXIN_CLASS_WITH_MIXINS, 2, 25, 1)); |
} |
+ public void test_StringPlus() throws Exception { |
+ AnalyzeLibraryResult result = analyzeLibrary( |
+ "// filler filler filler filler filler filler filler filler filler filler", |
+ "main() {", |
+ " var v1 = '1' + '2';", |
+ " var v2 = '1' + 2;", |
+ "}", |
+ ""); |
+ assertErrors( |
+ result.getErrors(), |
+ errEx(TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE, 4, 18, 1)); |
+ } |
} |