Index: tests/compiler/dart2js_extra/21166_test.dart |
diff --git a/tests/compiler/dart2js_extra/21166_test.dart b/tests/compiler/dart2js_extra/21166_test.dart |
index bc8f63bf16180f22207086fa8ad4978cec970d4b..b060c1fdb576dcccc889080c1392ff3ff05f470a 100644 |
--- a/tests/compiler/dart2js_extra/21166_test.dart |
+++ b/tests/compiler/dart2js_extra/21166_test.dart |
@@ -8,9 +8,10 @@ |
var a = []; |
void doStuff() { |
- if (a.length) { // This triggers a TypeConversion to bool in checked mode. |
+ if (a.length) { |
+ // This triggers a TypeConversion to bool in checked mode. |
var element = a[0]; // This triggers a bounds check but a.length will have |
- a.remove(element); // type [empty]. |
+ a.remove(element); // type [empty]. |
} |
} |
@@ -21,5 +22,3 @@ main() { |
doStuff(); // This is expected to fail but not crash the compiler. |
} catch (_) {} |
} |
- |
- |