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

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

Issue 10540114: Issue 3528. Additional checks for 'case expressions' (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 5521c5012bd7cb3f9cd8f64dd83982f657d77a34..4d97b2d41541ea681fe0293260ab21e0d6ab9955 100644
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java
@@ -1067,7 +1067,6 @@ public class TypeAnalyzerTest extends TypeAnalyzerTestCase {
public void testSwitch() {
analyze("{ int i = 27; switch(i) { case i: break; } }");
- analyze("{ num i = 27; switch(i) { case i: break; } }");
analyzeFail(
"{ switch(true) { case 1: break; case 'foo': break; }}",
TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE);

Powered by Google App Engine
This is Rietveld 408576698