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

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

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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 734e27738812240a20a18a1bb45c2d2edd120166..ba4acaafee5cff0d5f214be47be10e309f5f9404 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1216,12 +1216,12 @@ public class TypeAnalyzerTest extends TypeTestCase {
Map<String, ClassElement> classes = loadSource(
"class GoodField {",
" static final int i = 1;",
- "}",
- "class BadField {",
- " static final int i = '';",
"}");
analyzeClass(classes.get("GoodField"), 0);
- analyzeClass(classes.get("BadField"), 1);
+
+ // Note, the TypeAnalyzer doesn't get a chance
+ // to get its hands on bad initializers anymore
+ // due to type checking in CompileTimeConstVisitor.
}
public void testGetAllSupertypes()

Powered by Google App Engine
This is Rietveld 408576698