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

Unified Diff: compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java

Issue 10546168: Issue 3540. Better error message for string concatenation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: 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 76b45e1f6d4dc9e01cdcde0a70dbb0279a50f92f..8a509faf5ff0b40beb4a66f413dc019a862b21d0 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1388,12 +1388,8 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
analyze("{ var c = a + b; }");
analyzeFail("{ var c = s + b; }",
TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT);
- analyzeFail("{ var c = a + s; }",
- TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT);
analyzeFail("var c = 'foo' + 1;",
TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT);
- analyzeFail("var c = 1 + 'foo';",
- TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT);
analyzeFail("var c = 'foo' + 'bar';",
TypeErrorCode.PLUS_CANNOT_BE_USED_FOR_STRING_CONCAT);
}

Powered by Google App Engine
This is Rietveld 408576698