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

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

Issue 10540029: Adds a warning if the + opearator is used with two strings. (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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.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/TypeTestCase.java
diff --git a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
index 0f1db9b8e0f0eb04045df894c169c335e747f5af..05ef9d7ec62582dd7d7cad20c712ef67c3fb8a0e 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeTestCase.java
@@ -4,6 +4,7 @@
package com.google.dart.compiler.type;
+import com.google.common.collect.Maps;
import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.ErrorCode;
@@ -18,6 +19,7 @@ import com.google.dart.compiler.ast.DartStatement;
import com.google.dart.compiler.ast.DartTypeNode;
import com.google.dart.compiler.ast.Modifiers;
import com.google.dart.compiler.resolver.ClassElement;
+import com.google.dart.compiler.resolver.Element;
import com.google.dart.compiler.resolver.Elements;
import com.google.dart.compiler.resolver.MethodNodeElement;
import com.google.dart.compiler.resolver.TypeVariableElement;
@@ -38,7 +40,7 @@ import java.util.Map;
*/
abstract class TypeTestCase extends TestCase {
- final Map<String, ClassElement> coreElements = new HashMap<String, ClassElement>();
+ final Map<String, Element> coreElements = Maps.newHashMap();
final ClassElement object = element("Object", null);
final ClassElement function = element("Function", itype(object));
final ClassElement number = element("num", itype(object));
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698