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

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

Issue 12440018: Tweak dartc test for String concat. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a6c646489275bc17e584f50d9e5e42d6d4dc8508..c2cc676f73143657e410f3684d42c85b2a1d2ed8 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1199,21 +1199,4 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
analyzeFail("while ('') {}",
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
}
-
- public void testStringConcat() {
- Map<String, ClassNodeElement> source = loadSource(
- "class Object {}",
- "abstract class Foo {",
- " operator +(arg1);" +
- "}",
- "Foo a = new Foo();",
- "Foo b = new Foo();",
- "String s = 'foo';");
- analyzeClasses(source);
- analyze("{ var c = a + b; }");
- analyze("{ var c = s + b; }");
- analyzeFail("var c = 'foo' + 1;",
- TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);
- analyze("var c = 'foo' + 'bar';");
- }
}
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698