Index: tests/language_2/checked_setter_test.dart |
diff --git a/tests/language/checked_setter_test.dart b/tests/language_2/checked_setter_test.dart |
similarity index 66% |
rename from tests/language/checked_setter_test.dart |
rename to tests/language_2/checked_setter_test.dart |
index 6d45d8bc358b157174a2a28607eab59647cabd28..46f35cf711eeae1730d3be303b97a4aa759108a1 100644 |
--- a/tests/language/checked_setter_test.dart |
+++ b/tests/language_2/checked_setter_test.dart |
@@ -18,14 +18,5 @@ var array = [new B()]; |
main() { |
array[0].c = new C(); |
- bool inCheckedMode = false; |
- try { |
- var i = 42; |
- String a = i; |
- } catch (e) { |
- inCheckedMode = true; |
- } |
- if (inCheckedMode) { |
- Expect.throws(() => array[0].c = new B(), (e) => e is TypeError); |
- } |
+ array[0].c = new B(); /*@compile-error=unspecified*/ |
} |