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 3922b7a655dac348ce427d94d9e1b750400ca923..3a12f97c1af2794a1523ef436b55bd2cb0cf7691 100644 |
--- a/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTest.java |
@@ -1077,9 +1077,12 @@ 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; } }"); |
- analyze("{ switch(true) { case 1: break; case 'foo': break; }}"); |
- analyzeFail("{ int i = 27; switch(true) { case false: i = 2.7; }}", |
- TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE); |
+ analyzeFail( |
+ "{ switch(true) { case 1: break; case 'foo': break; }}", |
+ TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE); |
+ analyzeFail( |
+ "{ int i = 27; switch(true) { case false: i = 2.7; }}", |
+ TypeErrorCode.TYPE_NOT_ASSIGNMENT_COMPATIBLE); |
} |
public void testThis() { |